Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hey,
I'm trying to run this query on GraphiQL
locations(first:100){
nodes{
name
}
}
but it always returns an empty array, although I can see my locations on admin panel also, I have full permission and all other queries work fine.
Solved! Go to the solution
This is an accepted solution.
I found the problem.
locations query returns only the locations which support picking up feature.
make sure you check this option in `shipping and delivering` settings for each location you want.
Hi @NatDev ,
Please change your query to,
{
locations(first:100){
edges{
node{
name
}
}
}
}
Thanks ....
Hey Oscprofessional,
still the same problem
Hi @NatDev ,
Try this, It is working
{
locations(first: 100) {
edges {
node {
name
}
}
}
collections(first: 10){
edges{
node{
id
}
}
}
}
Thanks....
No, it's not working.
locations query keeps returning an empty array.
Hi @NatDev ,
Did you assign store name here,
If not please update and try again.
Thanks....
Yes, sure I have store name.
everything is working ok for me all other queries return data correctly except this one.
Hi @NatDev ,
Could you please share store url and credentials so that I can run the query and check the issue.
Sorry, I can't .
This is an accepted solution.
I found the problem.
locations query returns only the locations which support picking up feature.
make sure you check this option in `shipping and delivering` settings for each location you want.