Skip to content
Discussion options

You must be logged in to vote

Hey @MackenzieStorey

From what I am seeing from your graphql query, it seems that _or condition is never in match with that of first clause (before comma seperated)

There are two conditions here in "seperate" manner:

  1. Equality check, where it checks if userId equals to given value.
  2. A separate clause of _or where it contains the same condition as (1)

So because of these two clauses being seperate conditions, it results into AND in generated SQL .

Rectifiction to your use-case query:

I get it that from syntax of introspection query, it looks confusing. But if your use-case was to get results where userId equals to either one or another value, you can solely use _in operator i.e. list based…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MackenzieStorey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
None yet
2 participants