A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hey all, does anyone know a query that'll return (eventually) only line items that have been added during an order edit? I only know how to do it for the full order as follows (this is from a orders/edited webhook), but need to avoid (somehow) items that weren't added during the edit. Bonus if you can retain the fulfillment location filter.
{% capture query %} query { order(id: {{ order_edit.order.admin_graphql_api_id | json }}) { fulfillmentOrders( first: 10 query: "assigned_location_id:{{ shop.primary_location_id }}" ) { nodes { lineItems(first: 100) { nodes { totalQuantity variant { id } } } } } } } {% endcapture %}