Collection

Methods that can be used regardless of collection.

createBackup()

Create a backup of the collection.

returns String<[BackupFilename]> | Boolean

Example:

example_collection.createBackup(); // -> EXAMPLE_COLLECTION_2022-03-20_AUTO.pea

loadBackup(filename)

Load a backup to the collection.

ParameterDescription

filename

String The filename of the backup.

returns Boolean

Example:

example_collection.loadBackup("EXAMPLE_COLLECTION_2022-03-20_AUTO.pea"); // -> true

drop()

Drop the collection.

returns Boolean

Example:

example_collection.drop(); // -> true

Last updated