← Back to the Developer Tools category

Database Query

Executes a SELECT query on a database and returns the results as JSON. Use this for retrieving data from your database.

DatabaseQuerySQL
Try this node

Inputs

NameTypeRequiredDescription
databasedatabaseYesDatabase ID
schemaschemaNoOptional schema to validate and coerce query results
sqlstringYesSQL SELECT query to execute
paramsjsonNoQuery parameters (array of values)

Outputs

NameTypeDescription
resultsjsonQuery results as an array of objects
countnumberNumber of rows returned

Related Nodes in Developer Tools