Closed ifs-pvt closed 6 years ago
Forgot: GraphiQL query returns default data: { "data": { "person": { "id": "userid1", "name": "Michael Brook", "eyeColor": "brown", "occupation": "Programmer" } } }
This is most likely due to this reported issue here: https://github.com/Pitchlyapp/meteor-apollo2/issues/4
Changes have been made that should hopefully resolve your issue, in particular, changing
import Cache from 'apollo-cache-inmemory';
to
import { InMemoryCache } from 'apollo-cache-inmemory';
and
const cache = new Cache(window.__APOLLO_STATE);
to
const cache = new InMemoryCache(window.__APOLLO_STATE);
This is because new versions of the NPM packages broke the previous way.
OS: Windows 7. Steps: