Collections and Graphiql queries

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 Expert
3465 459 515

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 or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development