Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 691 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 691 Bytes

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
---

Start guide

  • npm install
  • npm run start:server
  • npm run start:client

Tested on nodejs v14.15.4