SurrealDB icon

SurrealDB

Interaction with a SurrealDB database

Table → Create Many Records

AI-generated

Summary

Create multiple records in a specified SurrealDB table from an array of JSON objects representing each record's data.

Inputs

  • table (required) — The SurrealDB table name to add records to. Can be a plain table name or a full record ID (e.g., "person:john"), in which case the table name is extracted automatically.
  • data (required) — A JSON array containing objects that represent the records to be created in the table.
  • options.namespace — Optional namespace override for executing the operation, overriding the credential's default namespace.
  • options.database — Optional database override for executing the operation, overriding the credential's default database.
  • connectionPooling — Configuration options for connection pooling to optimize performance, including max/min connections, timeouts, retry attempts, and connection validation settings.

Output shape

a list of created records' data as returned from SurrealDB

Returns the server response for all created records, formatted as an array matching the input data's order. May include inserted record IDs. Operation handles batch processing internally for efficient creation.

Links

Discussion