Data Types

dataTypes Query

Returns a paginated list of DataType objects, with optional filtering and ordering.

Arguments

Name
Type
Description

after

Cursor

Returns the elements in the list that come after the specified cursor

first

Int

Returns the first n elements from the list

before

Cursor

Returns the elements in the list that come before the specified cursor

last

Int

Returns the last n elements from the list

orderBy

DataTypeOrder

Ordering options for DataTypes returned from the connection

where

DataTypeWhereInput

Filtering options for DataTypes returned from the connection

Return Type

DataTypeConnection! - A connection to a list of DataType objects with pagination information.

Usage Example

query {
  # Get all data types for a specific entity
  dataTypes(
    where: {
      entity: "item"
    },
    orderBy: { direction: ASC, field: NAME }
  ) {
    edges {
      node {
        id
        name
        slug
        description
        entity
        default
        jsonSchema
        frontendSchema
      }
      cursor
    }
    totalCount
  }
}

Last updated

Was this helpful?