Is (now or in the future) Square’s implementation of GraphQL capable of a query for all orders that contain a particular item? For example, return all closed orders from 2020 whose line items contain caffe mocha. If so, what would this query look like?
Obviously, I’m hoping there’s a way to do this, as the alternative seems to be SearchOrders returning a large number of orders, then filtering nearly all of them away by scanning their line items, which would be a lot slower. Given that on Square Dashboard, you can do my proposed query quite quickly, I’m thinking this should be quite viable.
Thanks