GraphQL - Query orders by line item title

Highlighted
Shopify Partner
30 0 4

Hi, I'm fairly new to GraphQL and I was looking for a bit of help. I've used it once in the past to query product variants by their SKU without issue but now I'd like to return an array of orders where the title of any of the line items contains a string. Think it might be easier to do this via querying products by title and getting a list of SKUs to query orders for. According to the API docs (if I'm reading them correctly) there doesn't seem to be a way to query just line items in an order unfortunately. If anyone has any idea on how to get this done please let me know.

0 Likes
Shopify Partner
30 0 4

I've been trying to go the route of creating a saved search and using that when querying orders, however it seems like if I pass an order query a saved search that has a string for the query, whether it was created via the graphql API or from the admin page it returns 0 results?

0 Likes