Prisma · Schema

CreateInput

Input data for creating a new record

Properties

Name Type Description
data object The field values for the new record
select object Fields to include in the returned record
include object Relations to eagerly load in the returned record
View JSON Schema on GitHub

JSON Schema

prisma-createinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateInput",
  "title": "CreateInput",
  "type": "object",
  "description": "Input data for creating a new record",
  "properties": {
    "data": {
      "type": "object",
      "description": "The field values for the new record",
      "additionalProperties": true
    },
    "select": {
      "type": "object",
      "description": "Fields to include in the returned record",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "include": {
      "type": "object",
      "description": "Relations to eagerly load in the returned record",
      "additionalProperties": {
        "type": "boolean"
      }
    }
  },
  "required": [
    "data"
  ]
}