Ben Newman
Ben Newman
You can provide your own `keyFields` function for more control: ```ts new InMemoryCache({ typePolicies: { Offer: { keyFields(object, context) { // In addition to returning a string ID immediately, a...
@guiaramos This appears to be a known issue related to the `graphql` package's use of the `.mjs` file extension: https://github.com/graphql/graphql-js/issues/1272. Can you try adding `mjs` to your `moduleFileExtensions`, at the...
@pulkit110 We had a similar problem with webpack misresolving `graphql` to a local `graphql.ts` module recently: #8862 Are you using webpack? Do you have [`preferRelative: true`](https://github.com/apollographql/apollo-client/pull/8862#issuecomment-930267108) enabled, by any chance?
@Off2Race I would expect that code to be equivalent to the following: ```ts client.refetchQueries({ include: ["QueryIWantToRefresh"], }) ``` Does that not work for you? Or was your point just that...
@blehoux17 I agree this is not an actionable or useful warning (in this particular case), and we should find a way to hide it. I'm collecting various subscription-related issues using...
Relevant recent PR from @PedroBern: https://github.com/apollographql/apollo-client/pull/7148
@piers-smartwyre Are these numbers from React Native Android specifically? How does the iOS simulator/device compare?
The React Native JS environment is typically 30x-50x slower than a desktop browser, especially the Android version. That unfortunate reality means you may be forced to [paginate](https://www.apollographql.com/docs/react/pagination/overview/) your data, ideally...
I've seen that [test failure](https://app.circleci.com/pipelines/github/apollographql/apollo-client/16907/workflows/85e52727-88c8-46a9-bb6d-fe7127074c3b/jobs/93827) before, and I think it may be worth investigating.
@MajidCybanor What version of `@apollo/client` were you using before you updated?