Optional reCaptchaToken: stringPrivate reOptional X-A helper method for creating a new collection.
Properties for new collection
collectionsClient.createCollection({
  name: 'newCollection',
  schema: [
    {
      name: 'name',
      type: 'STRING'
    },
    {
      name: 'age',
      type: 'LONG'
    },
  ],
  syncEnabled: true,
});
A helper method for deleting a collection.
ID of target collection to delete
collectionsClient.deleteCollection('753e53a0-f054-11e9-81b4-2a2ae2dbcce4');
A helper method for updating a collection.
ID of target collection to update
Partial object representing the new values of the collection
collectionsClient.updateCollection(
  '753e53a0-f054-11e9-81b4-2a2ae2dbcce4',
  {
   schema: [
     {
       name: 'name',
       type: 'STRING'
     },
     {
       name: 'created',
       type: 'DATETIME'
     },
   ],
  }
);
Generated using TypeDoc
SDK for interacting with collections in AppDB.
Example Usage