Mutation

create_tag

Creates a new tag.

Arguments

input: CreateTagInput!


Input Fields

name(): String!
The name of the tag.
description(): String
The description of the tag.
color(): TagColor!
The color of the tag.

Return Fields

tag(): Tag!
The newly created tag.

Example

Query
mutation CreateTag($input: CreateTagInput!) {
  create_tag(input: $input) {
    tag {
      id
      name
      description
      color
    }
  }
}
Variables
{
  "input": {
    "name": "Europe",
    "description": "Sites hosted in European data centers",
    "color": "LIGHT_BLUE"
  }
}
Result
{
  "data": {
    "create_tag": {
      "tag": {
        "id": "4",
        "name": "Europe",
        "description": "Sites hosted in European data centers",
        "color": "LIGHT_BLUE"
      }
    }
  }
}