Create Data Type
createDataType Mutation
Creates a new DataType definition in the system.
Arguments
input
CreateDataTypeInput!
Input data for creating the data type
Return Type
DataType - The created data type.
Input Fields
CreateDataTypeInput:
name
String
Human-readable name of the data type
slug
String
Machine-readable slug used to reference the data type
description
String
Description of the data type and its purpose
jsonSchema
String!
Required JSON Schema definition (as a string) that describes the structure of the data
frontendSchema
String
Optional frontend-specific schema information (e.g., UI form definitions)
default
Boolean
Whether this is the default data type for its entity
entity
String!
Required entity type this data type is associated with (e.g., "customer", "item")
Usage Example
This mutation creates a data type definition that can be used to structure and validate data for items in the system. The JSON Schema provided defines the expected structure, property types, and required fields for the entity's data.
Last updated
Was this helpful?
