tag
Adds a tag to a TagSubject.
Tags a TagSubject with an existing tag. You must first use createTag to create a new tag:
mutation CreateTag($name: String!, $type: TagType!) { createTag(input: {name: $name, type: $type}) { tag { id } } } mutation Tag($subjectId: String!, $tagId: ID!) { tag(input: {subjectId: $subjectId, tagId: $tagId}) { subject { id tags { id name } } } }mutation CreateTag($name: String!, $type: TagType!) { createTag(input: {name: $name, type: $type}) { tag { id } } } mutation Tag($subjectId: String!, $tagId: ID!) { tag(input: {subjectId: $subjectId, tagId: $tagId}) { subject { id tags { id name } } } }
To remove a tag from a TagSubject, use the untag mutation.
Authorization is required to use this mutation.
If the given subject is already tagged with the given tag, this mutation has no effect.
Arguments
Deprecated fields are hidden.
| Argument | Description | Type |
|---|---|---|
| input | TagInput! |
Type
This field resolves to TagPayload, which has the following fields:
Deprecated fields are hidden.
| Field | Description | Type |
|---|---|---|
subject | TagSubject |