How to use OR WHERE with MySQL handler #5344
Answered
by
ardatan
ashokkumar88
asked this question in
General
-
I am using the MySQL handler. How can we use the OR operator in WHERE clause? For example we need to run the following query
|
Beta Was this translation helpful? Give feedback.
Answered by
ardatan
Apr 19, 2023
Replies: 1 comment 1 reply
-
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
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ashokkumar88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can have multiple aliases for each condition in OR statement;