Filter query by uid in GraphQL API

Hi,
I was wondering if it is possible to filter the query by providing the uid that should be excluded. What I am trying to reach is I am querying all blog post, but I want to remove one post based on provided uid. Had no luck trying to find and answer in documentation, it looks like there is no filter option at all.

Hi Team,

What you're searching for is the not predicate:

Thanks

@Phil Thank you for the quick response. I am sorry I did not provided all the details in my initial post, but what I was referring to, was GraphQL API.

No worries. Unfortunately, this isn't possible in the GraphQL API at the moment. Although it is being tracked as feature request here:

There are filtering options though, described here:

Thank you @Phil , hope this will get developed at some point :smiley: Good luck!

1 Like