Anchor to MoveInputMove
input_objectMove Input
The input for moving a single object to a specific position in a set.
Provide this input only for objects whose position actually changed; do not send inputs for the entire set.
- id: The ID (GID) of the object to move.
- newPosition: The zero-based index of the object's position within the set at the time this move is applied.
Moves are applied sequentially, so for each move is evaluated after all prior moves in the same list.
If
is greater than or equal to the number of objects, the object is moved to the end of the set.
Values do not have to be unique. Objects not included in the move list keep their relative order, aside from any displacement caused by the moves.
Anchor to FieldsFields
- •ID!non-null
The ID of the object to be moved.
- Anchor to newPositionnew•Unsigned
Position Int64! non-null Zero-based index of the object's position at the time this move is applied. If the value is >= the number of objects, the object is placed at the end.
Was this section helpful?