I am migrating from REST to Graphql, the rest code is well established and has been is use for over 5 years, so I am not new to shopify, but new to the graphQl.
I am using the shopify graph ql app to generate a query…
{
shop {
name
}
locations(first: 10) {
edges {
node {
fulfillmentService {
id
location {
id
}
}
id
}
}
}
}
The reponse is coming back as;
{
“data”: {
“shop”: {
“name”: “my Store”
},
“locations”: {
“edges”: [
{
“node”: {
“fulfillmentService”: null,
“id”: “gid://shopify/Location/27403589”
}
},
{
“node”: {
“fulfillmentService”: null,
“id”: “gid://shopify/Location/76871139380”
}
}
]
}
},
suggesting I have no fulfillment services set up ?
Hi Jason,
It’s possible the locations are not configured as fulfilment services, if you run this, you should see if the locations are set up as fulfillment services and get additional details about the fulfillment service, if available.
query {
locations(first: 10) {
edges {
node {
id
name
isFulfillmentService
fulfillmentService {
id
serviceName
type
}
}
}
}
}
Thanks Liam, they both come back as false.
I have made them both fulfillment inventory locations and added a shipping service.
Note this is my test shop, not a live one - they work ok at the moment using rest.
“data”: {
“locations”: {
“edges”: [
{
“node”: {
“id”: “gid://shopify/Location/27403589”,
“name”: “26 The Headrow”,
“isFulfillmentService”: false,
“fulfillmentService”: null
}
},
{
“node”: {
“id”: “gid://shopify/Location/76871139380”,
“name”: “BDM Warehouse”,
“isFulfillmentService”: false,
“fulfillmentService”: null
}
}
]
}
},
If I do a similar call adding , shipsInventory, that comes back as true. I am getting the two mixed up?
So a location might be used for shipping inventory directly to customers but is not configured as a third-party or manual fulfillment service in Shopify’s system.
Fulfilment services will show up here on the admin: