활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hello everyone,
I want to get the result in my Node JS when I run a specific query on the magento server.
I have used the Apollo libraries to hit the Magento endpoint, but getting below error:
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
@dplatonThese are the dependency I am using : "apollo-client": "2.0.4", "apollo-link": "1.1.0", "apollo-link-http": "1.3.3",
What are the exact version you are using for client ?
Also are you using react or node ?
조회 수
답글
좋아요 수
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)
조회 수
답글
좋아요 수