Skip to main content

MenuItemMoveInput

No description

input MenuItemMoveInput {
itemId: ID!
parentId: ID
relativeOffset: Int
isStrictOffset: Boolean
}

Fields

The menu item ID to move.

ID of the parent menu. If equals to "null", menu will be top level menu. If not transferred, parent will not be changed.

The new relative offset from the current position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged. Be aware, if parent was changed and you want to set new position, then you should take into account, that on parent change, item will be appended to parent children.

Set to 'true', if you want receive an error in case, when new calculated position (based on offset) is invalid: has negative value, or greater than number of parent elements.

Member Of

menuItemMove mutation

Was this page helpful?