GraphQL API: Can I get all orders that have a particular attribute (additional details)?

I need to get orders that have a particular attribute like this one:

Is this possible? I’m struggling to find anything that can help in the orders query documentation.

Any insight is appreciated :folded_hands:

Hey Pirdentt,

Querying orders by attribute is not supported. Your best option is to add the data you want to query on as an order metafield.

You can read the order attributes & write metafield data to orders in the background by subscribing to order webhooks (if you’re developing an app) or using Shopify Flow (if you’re working directly with a merchant).

1 Like