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

default discord avatar
Stupidism
last year
1 1

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

image

I'm expecting sth like this:

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

image

  • discord user avatar
    jmikrut
    Payload Team
    10 months ago

    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
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.