Like what we’re doing? Star us on GitHub!

How to construct "not like" logic with graphql api?

Stupidism
5 months ago
1 1

Currently, I only see these operators in the query filter.

image

I'm expecting sth like this:

slug: {
  not: {
    contains: "demo"
  }
}

image

  • jmikrut
    Payload Team
    last month

    Hey @Stupidism — we don't currently have an operator that could represent not like but it could definitely be built. If you're up for making a PR, we would happily accept it!

Open the post
Continue the discussion in GitHub
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More