since ‎08-06-2015
‎29-09-2020
dplaton
Level 1
Re: Error while executing Magento Graphql query from NodeJS.
Avatar

dplaton

dplaton
- Adobe Experience Manager
I used Apollo Client 3.0. It did require adding React as a dependency but I'm not sure why. Looking briefly around the internet it seems that while you can use Apollo Client directly in Node (using just Apollo Link) it's not the recommended approach since you don't get the caching and all the rest of the goodies you get from the browser (relevant SO thread here)

Views

194

Likes

0

Replies

0
Re: Error while executing Magento Graphql query from NodeJS.
Avatar

dplaton

dplaton
- Adobe Experience Manager
Hi, This is error is related to the Apollo Client (see details here). I tried the same code with Apollo Client v3 and it worked just fine, I guess you are still using version 2 Hope this helps,Daniel

Views

260

Likes

0

Replies

0
Re: Error while executing Magento Graphql query from NodeJS.
Avatar

dplaton

dplaton
- Adobe Experience Manager
This comment is deleted

Views

260

Likes

0

Replies

0