NodeDataType
nodeDataType Query
Audience: Programmer
Fetches a management-related object given its ID. This query follows the Relay Global Object Identification Specification and can retrieve any object that implements the NodeDataType interface.
Arguments
Name
Type
Description
id
ID!
The unique identifier of the management object to retrieve
Return Type
NodeDataType - An interface that returns an object implementing the NodeDataType interface. This includes:
DataType- JSON schema definition for entity data validationCompany- Company/organization entityEvent- Custom event definitionsUser- System user accounts
Usage Example
GraphQL Query
query GetManagementObject($id: ID!) {
nodeDataType(id: $id) {
id
... on DataType {
name
slug
schema
entity
enabled
createdAt
updatedAt
}
... on Company {
name
organizationID
tenantID
users {
id
username
email
}
}
... on Event {
topic
name
description
payload
key
createdAt
}
... on User {
username
email
idpID
role
groups {
id
name
}
company {
name
}
}
}
}Query Variables
JavaScript Example
Type Detection
Use the __typename field to determine which specific type was returned:
Related
Last updated
Was this helpful?
