MenuItemMoveInput
No description
input MenuItemMoveInput {
itemId: ID!
parentId: ID
relativeOffset: Int
isStrictOffset: Boolean
}
Fields
MenuItemMoveInput.itemId ● ID! non-null scalar
The menu item ID to move.
MenuItemMoveInput.parentId ● ID scalar
ID of the parent menu. If equals to "null", menu will be top level menu. If not transferred, parent will not be changed.
MenuItemMoveInput.relativeOffset ● Int scalar
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.
MenuItemMoveInput.isStrictOffset ● Boolean scalar
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