This repository is example for apollo-client
issue
If we use watchQuery
with network-only
fetch policy, the http request will be duplicated.
Example logs
Server log:
---
INFO | MUTATION handler called
INFO | QUERY handler called
INFO | QUERY handler called
---
Client log:
---
MUTATION | HTTP fetch called. Operation -> CreateEntity
QUERY | HTTP fetch called. Operation -> GetEntities
QUERY | HTTP fetch called. Operation -> GetEntities
---
npm install
npm run start:server
npm run start:client
Tested on nodejs v14.15.4