-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose AND and OR logical operators in GraphQL query filters #579
Comments
The way this was initially intended to look like was: {
users(where:
# implicit AND at the top level
{
name_startsWith: "A",
OR: {
name_endsWith: "c",
name_endsWith: "d",
AND: {
name_contains: "o",
name_contains: "i",
}
}
}
) {
...
}
} The above would return all users whose names start with "A" and either
Open questions:
|
I'd also like this, especially because I cannot match query {
erc721Tokens(
orderBy: identifier,
orderDirection: asc,
where: {hat_in:["Bucket", "Cowboy"]}
) {
identifier
owner {
id
}
}
} What I really need is matching where I think this would be intuitive, especially since both query {
erc721Tokens(
orderBy: identifier,
orderDirection: asc,
where: {hat_in:["Bucket", "Cowboy"] OR hat:null}
) {
identifier
owner {
id
}
}
} |
Is this supposed to only work on the same field or can we combine multiple fields like:
|
Where filters should allow AND and OR logical operators to combine and nest conditions in the GraphQL queries.
The text was updated successfully, but these errors were encountered: