Hello Everyone, I am trying to add a tag with mult...
# getting-started
a
Hello Everyone, I am trying to add a tag with multiple fields of a dataset using GraphQL mutation. I am using "batchAddTags" method and it is being executed successfully however it is adding tag with the last field only mentioned in the query not with all the mentioned fields. e.g. in below query - "Account" tag is applying only to the "account_name" field of the "db.master.Account_1" dataset. It is NOT being applied to "account_id" field. Any suggestion or information regarding the same will be helpful.
Copy code
mutation BatchAddTagsInput {
    batchAddTags(
      input: {
        tagUrns: ["urn:li:tag:Account"],
        resources:[
          {
          resourceUrn: "urn:li:dataset:(urn:li:dataPlatform:postgres,db.master.Account_1,PROD)",
          subResourceType:DATASET_FIELD,
          subResource:"account_id"
          },
          {
          resourceUrn: "urn:li:dataset:(urn:li:dataPlatform:postgres,db.master.Account_1,PROD)",
          subResourceType:DATASET_FIELD,
          subResource:"account_name"
          }         
         
        ]
      })
}
d
That is certainly weird - we’ll get back to you shortly. (cc. @famous-waitress-64616)
a
@big-carpet-38439 can you look into this?
a
Hello @delightful-ram-75848, Is there any way you can suggest for the mentioned issue using graphQL.
b
https://github.com/datahub-project/datahub/issues/9284 Made an issue, have the same problem. Maybe you can push it with a comment
👍 1
g
Hi! Any update on this issue?
b
maybe i will take look on it, if i find time 🙂
g
Thank you! 🙂