Skip to content

dataTypeBySlug

Returns the latest non-deleted DataType version for the given slug within the caller’s tenant, or null if no version exists. Convenience wrapper for the relay query dataTypes(where: {slug}, orderBy: {field: VERSION, direction: DESC}, first: 1).

Served by: management

Name Type
slug String!

DataType

Returns the latest non-deleted DataType version for the given slug within the caller’s tenant, or null if no version exists.

query GetDataTypeBySlug($slug: String!) {
dataTypeBySlug(slug: $slug) {
createdAt
createdBy
default
deletedAt
deletedBy
description
entity
frontendSchema
id
jsonSchema
name
slug
tenantID
updatedAt
updatedBy
version
}
}

Variables

{
"slug": "<data type slug, e.g. customer>"
}