Skip to content

Concepts

Data manipulation

These methods read and write records without writing SurrealQL. Each takes a table name or a record ID, and each has its own page with its arguments, builder methods and examples. To run SurrealQL yourself, see executing queries, and for a live stream of changes to a table, see live queries.

MethodDescription
db.select()Selects all records in a table, or a specific record, from the database
db.create()Creates one or more records in the database
db.insert()Adds one record or many to a table, and inserts graph edges through .relation()
db.update()Updates all or specific records in the database
db.upsert()Upserts all records in a table, or a specific record
db.delete()Deletes all records in a table, or a specific record, from the database

Was this page helpful?

Last updated