Re: Collections and Graphiql queries

How do I write a Graphiql query for collection in react-hydrogen?

Moran44
Shopify Partner
1 0 0

Currently I'm building react-hydrogen frontend, It's my first time, and I'm trying to write a query for collection,

I used the. 

{

shop {

    name

     }

}

but i'm getting an error: headers are invalid JSON: expected property name or '}' at position 4, I looked at some examples from your youtube, and I can't find what I did wrong, do I need to get a token for my .env before doing tha

 

 

Reply 1 (1)

BSS-Commerce
Shopify Partner
3477 463 535

Hi @Moran44 

We've carefully checked your website and found your problem quite complicated. So we suggest hiring a developer.

It's what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply...

We will check it and give you a detailed solution. We're looking forward to working with you.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency