Skip to main content
QUERY
cardDefinitionById(id: ID!): CardDefinition!

Arguments

id
ID!
required

Global id of the card definition (CardDefinition.id).

activationStatus

Progress of the indexing that makes the card definition's latest property changes live. Its status is UNKNOWN, with no steps, for a DRAFT card definition or when there's no progress to show.

activePropertySet
deprecated
use `properties` with property set filter instead
allowsEnrichment
Boolean!

True if at least one live card property has isEditable set, so enrichment can change the card definition's cards. Read-only.

cardsCount

Total number of cards of the card definition. Null when the count can't be read.

createdAt

When the card definition was created (UTC).

createdByUser

Id of the user who created the card definition.

Sources the card definition's card properties read from, pending changes included.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

description
String

Free-text note about the card definition.

descriptionProperty
String

Id of the card property (not the source property) whose value describes each card. Null when not set.

Card properties that present each card, as {key, value} items: key is the role (name, description or image), value is a card property id.

Endpoints whose content includes the card definition, as the root or through a relation, in their live or pending content.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

etag

Version tag for optimistic concurrency. Pass back the value you last read when you change the item.

id
ID!

Global id of the card definition: base64 of CardDefinition:<raw id>. cardDefinitionById and the card definition id arguments of the update, activate, delete and restore mutations take it. The raw id (e.g. products) is what createCardDefinition, CardDefinitionProperty.cardDefinitionId, the lifecycle queries and cardEntries(definitionId:) use.

imageProperty
String

Id of the card property (not the source property) whose value is each card's image. Null when not set.

isDeleted
Boolean!

True if the card definition is archived. Archived card definitions are still returned unless you filter on isDeleted. restoreCardDefinition restores it.

lastModified

When the card definition last changed (UTC).

lastModifiedByUser

Id of the user who last changed the card definition.

name
String!

Name of the card definition, shown in Studio.

nameProperty
String

Id of the card property (not the source property) whose value names each card. Null when not set.

pendingPropertyModifications
use `properties` with property set type filter instead

Card properties in every state, by order: the live ones (ACTIVE), the ones being indexed (UPDATING) and saved changes not applied yet (PENDING). Filter propertySetType: { eq: ACTIVE } for what the card exposes now. Paged: select the items under nodes.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

propertyCount
Int
deprecated

The number of properties on the card definition, including pending additions.

use totalCount on `properties` instead
propertyGroups

Groups that arrange the card definition's card properties in Studio. A card property can be in one group only.

Relation definitions that have the card definition as their source or target.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

Segment definitions built on the card definition.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

Segments built on the card definition, archived ones included.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

sourceRelationDefinitions

Relation definitions that have the card definition as their source.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

State of the card definition. See CardDefinitionStatus.

tags
[String!]!

Labels for grouping and filtering card definitions.

targetRelationDefinitions

Relation definitions that have the card definition as their target.

Arguments
after
String

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

before
String

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

first
Int

Returns the first n elements from the list.

last
Int

Returns the last n elements from the list.

tenantId

Id of the tenant that owns the item.

updatingPropertySet
deprecated
use `properties` with property set type `active` filter instead
Query
Variables
Response