Is it possible to provide an enumerated list of values which are “or”-ed together when filtering on a field?
Basically I’d like to be able to do something like:
query {
orders(shop_name="example.myshopify.com|test2.myshopify.com|My Amazon Account") {
id
shop_name
partner_order_id
order_date
order_number
}
}
This would be more beneficial to me as we’re reading many shops data at once instead of running the same query multiple times. I did test a simplistic fragmented query as shown below but got the keys of the “query” object returned as error messages (in addition to the actual data):
Query
query {
shopify: orders(shop_name:"example.myshopify.com") {
...orderFields
}
shopify2: orders(shop_name:"test2.myshopify.com") {
...orderFields
}
}
fragment orderFields on OrderQueryResult {
id
shop_name
partner_order_id
order_number
order_created
}
Response
{
"errors": [
{
"message": "'shopify'"
},
{
"message": "'shopify2'"
}
],
"data": {
...
}
}
Is it possible to do either of these (without getting an error response)?