Eventjet GraphQL API documentation

createTag

Creates a new tag.

This mutation allows you to create a new tag that can be used to tag subjects. After creating a tag, you can use the Mutation.tag to attach it to a TagSubject.

Example usage:

mutation CreateTag($name: String!, $type: TagType!) {
  createTag(input: {name: $name, type: $type}) {
    tag {
      id # The ID of the newly created tag. You can use this ID to tag subjects.
    }
  }
}
mutation CreateTag($name: String!, $type: TagType!) {
  createTag(input: {name: $name, type: $type}) {
    tag {
      id # The ID of the newly created tag. You can use this ID to tag subjects.
    }
  }
}

Authorization is required to use this mutation.

Arguments

ArgumentDescriptionType
inputCreateTagInput!

Type

This field resolves to CreateTagPayload, which has the following fields:

FieldDescriptionType
tagTag