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
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
slug |
String! |
Returns
Section titled “Returns”Example
Section titled “Example”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>"}