Mutations
Create, update and delete. Writes land locally first, then sync. Your UI never waits on the network.
Mutating data in Sp00ky is performant and secure. Changes are instantly reflected in your local UI (optimistic updates) and synchronized with the server.
Creating Records
To create a new record, use the db.create method. You need to specify the record ID (or let Sp00ky generate one) and the data.
Warning
Ensure you adhere to the PERMISSIONS defined in your schema. If a user does not have permission
to create a record, the operation will fail.
Updating Records
Use db.update() to update existing records. This performs a partial update (merge) by default.
Deleting Records
To delete a record, call db.delete with the table name and record ID.