Userbase

Docs : SDK : insertItem

insertItem lets you add items to a user's database. This API will return a promise that gets resolved once the item has been durably inserted into the database.

    
      userbase.insertItem({
        databaseName: 'example-database-name',
        item: { example: 'Sample Item A' }
      }).then(() => {
        // item inserted
      }).catch((e) => console.error(e))
  

Parameters

Advanced Parameters

Notes

Errors