Hey, I want to get all datasets that have a certai...
# getting-started
b
Hey, I want to get all datasets that have a certain tag via api. Have never worked with graphql previously, can someone please set me on the right track? Did not find anything of the sort while reading through documentation
b
in browser, visit the demo site, press F12, click on a tag. it should return you a page that list all the datasets that have the tag. look at the graphQL requests in the developer tab (network requests) that were fired when you click on the tag. one of them contains the graphql request for datasets containing tag
b
Your suggestion worked - I was able to alter the query to my needs, thanks! Now I am wondering whether I can delete entities via this api?
b
GraphQL supports UI operations, so whatever you can do via the UI there would be a equivalent graphql command. Just not sure if all entities can be deleted.
b
Afair there is no way of deleting stuff via the ui 😕
b
You can delete tags and terms, datasets as well
b
umm is this a new feature? could have sworn this wasn't possible earlier
b
Fairly recent
Dataset delete is found in search
You click on the 3 dots in top right in search listings, bulk edit
Tag is deleted in respective tag page
bulk edit is the one
b
hmm, will have to upgrade then
thanks for the help - highly appreciated!