Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

updateDataType

Updates an existing DataType in place.

Audience: Programmer

Updates an existing DataType in place. name is the only mutable business field on DataType — every other field is immutable, so UpdateDataTypeInput exposes only name (a schema change requires createDataType with the same slug to produce a new version).

Served by: management

Arguments

Name
Type
Default
Description

Returns

DataType!

Example

Updates a data type's name in place. name is the only mutable field on a DataType — every other field is immutable, so a schema change requires a new version via createDataType with the same slug.

mutation UpdateDataType($id: ID!, $input: UpdateDataTypeInput!) {
  updateDataType(id: $id, input: $input) {
    createdAt
    createdBy
    default
    deletedAt
    deletedBy
    description
    entity
    frontendSchema
    id
    jsonSchema
    name
    slug
    tenantID
    updatedAt
    updatedBy
    version
  }
}

Variables

Last updated

Was this helpful?