Display posts excluding a tag in Ghost gatsby theme in the index page

I would like to exclude posts from a certain category in the index page. How can I do this?
I tried editing this GraphQL query but I couldn’t get it to work.