Multiple Values When Querying By Store

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)?

Hi @brett !
Right now we don’t have the ability to do that, but I will go ahead and make a feature request for this to be added. Separate queries will work, but filtering by more than one store won’t work right now.
I will let you know as soon as I get a response about this request.
Thanks!
Tom