parmsang / gatsby-starter-ecommerce

Gatsby starter for creating an eCommerce site using the Moltin eCommerce Api
https://parmsang.github.io/gatsby-starter-ecommerce/
Other
503 stars 148 forks source link

Duplicated documents error #26

Closed Dejulia489 closed 5 years ago

Dejulia489 commented 5 years ago

This is the error I received out of the box.

Error: RelayParser: Encountered duplicate defintitions for one or more documents: each document must have a unique name. Duplicated documents: - ProductsQuery - IndexQuery

parmsang commented 5 years ago

I am aware of this issue. There is nothing wrong with the code. The issue stems from Moltin, unexpectedly, making changes to the backend datasource used for this demo. I have been in contact with Moltin and there will be a fix soon. I am currently on holiday and intend to work on the starter next weekend when I return..

Dejulia489 commented 5 years ago

Thank you for the update. The demo looks great by the way.

parmsang commented 5 years ago

I have made several fixes and the demo now uses the new Moltin datasource. You will notice content looks a bit different, some new nice looking lamps, with some minor features removed but essentially the same as before.