DataType
DataType Type
Represents a data type definition in the system, which defines the structure of dynamic data stored in the data field of various entities.
Fields
id
ID!
Unique identifier of the data type
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!
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!
The entity type this data type is associated with (e.g., "customer", "item")
Interfaces
NodeDataType
Usage Example
query {
dataTypes(
where: { entity: "item" }
) {
edges {
node {
id
name
slug
description
jsonSchema
frontendSchema
default
entity
}
}
}
}Last updated
Was this helpful?
