Is there a way to run a bulk mutation to add tags based on a query?

When using graphIql, it appears you can only add a single tag at a time, Can you not use a query to iterate through the results using nerdgraph to bulk add tags?

Hi @smahoney,

You can create multiple tags using an array of values in the mutation, however each tag will have the same key - e.g. myKey:value1, myKey:value2.

  taggingAddTagsToEntity(guid: "<YourEntityGUIDHere>", 
    tags: {
      key: "myKey",
      values: ["value1", "value2"]  // an array of values
    }) {
    errors {
      message
      type
    }
  }
}

Hope this helps. :slight_smile: