Skip to content

How to use OR WHERE with MySQL handler #5344

Answered by ardatan
ashokkumar88 asked this question in General
Discussion options

You must be logged in to vote

You can have multiple aliases for each condition in OR statement;

{
   productFive: product(where: { id: '5' }) {
      id
      name
   }
   productNew: product(where: { year: '> 2010' }) {
     id
     name
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ashokkumar88
Comment options

Answer selected by ashokkumar88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants