A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi.
We want to support updating order fulfillment locations in the label app.
Now, in the REST API, the only way to get assignment location is by fetching fulfillment orders.
But if we import multiple orders (initial import for example) is it possible to fetch all fulfillment orders at once?
I found the only method for a single order.
Is there any bulk API for fulfillment orders (for multiple source orders)?
Maybe we can get all open fulfillment orders for the shop?
aby update?
Hi there. Have you considered using Bulk Operations to run a query in GraphQL. https://shopify.dev/docs/api/usage/bulk-operations/queries
eg
```
mutation {
bulkOperationRunQuery(
query: """
{
fulfillmentOrders(first: 100) {
edges {
node {
id
status
lineItems(first: 5) {
edges {
node {
id
sku
}
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
```
Hope this helps
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog