updateDataType
Since pyck v0.27.0
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
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
id |
ID! | ||
input |
UpdateDataTypeInput! |
Returns
Section titled “Returns”Example
Section titled “Example”Updates a data type’s name in place. name is the only mutable field on a DataType and 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
{ "id": "<data type ID>", "input": { "name": "Updated Customer Type" }}