Mutation
mergeLabels
Fold one label into another across the whole workspace; asynchronous and irreversible — every creator carrying it ends up on the target, and the source label is deleted.
Arguments
- intoLabelName String! required
- The existing label that absorbs it, exactly as the
labelsquery returns it. It must already exist; the same label in any spelling is refused (userenameLabelto respell). A blank name is rejected. - labelName String! required
- The label to fold in, exactly as the
labelsquery returns it. It stops existing once the merge completes. Matching ignores case and surrounding whitespace. A blank name is rejected.
Returns
Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.
- operationId ID
- The
merge_labelsoperation that runs this merge; poll it withoperation(id:). Null when userErrors is non-empty. A label operation tracks progress withstatus,totalandprocessedonly — its record-derived counts are always 0 and its item-id lists always empty. - scheduled Boolean!
- True when the merge is scheduled;
operationIdis then set. False when userErrors is non-empty. The merge is asynchronous. - userErrors [UserError!]!
- Errors that refused the request, on the input at fault: a blank name, a label that does not exist or is being deleted, a label already being merged, the same label on both sides, a label stored under several spellings, or no user to attribute the merge to. Empty on success.
- field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.