Search the docs
Languages
/
Mojo
Methods
The select() method for the SurrealDB Mojo SDK selects all records in a table, or a specific record.
Selects all records in a table, or a specific record. This is a convenience wrapper that runs SELECT * FROM <thing>;.
SELECT * FROM <thing>;
Method Syntax
client.select(thing, session, txn)
thing
session
txn
# Select every record in a tablevar people = client.select("person")# Select a specific recordvar chiru = client.select("person:chiru")
SELECT * FROM $thing;
Was this page helpful?
Previous
query
Next
set