A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Solved! Go to the solution
This is an accepted solution.
Hey @gajenderdh947
You'll need to format the query like this:
query {
customers(first: 5, query: "orders_count:>10") {
edges {
node {
id
firstName
lastName
email
phone
createdAt
updatedAt
}
}
}
}
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @gajenderdh947
You'll need to format the query like this:
query {
customers(first: 5, query: "orders_count:>10") {
edges {
node {
id
firstName
lastName
email
phone
createdAt
updatedAt
}
}
}
}
Scott | Developer Advocate @ Shopify
Hi, is this still the accepted solution? Copying the query above directly into GraphiQL returns the following errors array. Thanks!
"search": [
{
"path": [
"customers"
],
"query": "orders_count:>10",
"parsed": {
"field": "orders_count",
"range_gt": 10
},
"warnings": [
{
"field": "orders_count",
"message": "Invalid search field for this query."
}
]