Skip to main content

CreateTreeFieldNodeInput

Input for creating a new tree field node at a specific position.

input CreateTreeFieldNodeInput {
fieldDefinitionId: ID!
targetNode: String!
position: TreeNodePosition!
nodeId: String!
translations: [TranslationStringInput!]!
isSelectable: Boolean!
}

Fields

CreateTreeFieldNodeInput.fieldDefinitionId ● ID! non-null scalar

The ID of the tree FieldDefinition to add a node to.

CreateTreeFieldNodeInput.targetNode ● String! non-null scalar

The full path of the reference node for positioning (e.g. "ROOT|~^CATEGORY-1").

CreateTreeFieldNodeInput.position ● TreeNodePosition! non-null enum

Whether to place the new node ABOVE, BELOW, or INSIDE the target node.

CreateTreeFieldNodeInput.nodeId ● String! non-null scalar

The identifier for the new node (e.g. "SUB-CATE-3").

CreateTreeFieldNodeInput.translations ● [TranslationStringInput!]! non-null input

Labels for the new node in various languages.

CreateTreeFieldNodeInput.isSelectable ● Boolean! non-null scalar

Whether this node should be selectable (added to treeOptions).

Member Of

createTreeFieldNode mutation