diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bb659b06fe..34cae75c6ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change log ### vNEXT +- Fix the ability to specify IDs in Apollo configuration to tell queries about updates when new information becomes available [PR #2274](https://github.com/apollographql/apollo-client/pull/2274) - Fix response not being included with errors that have response body [PR #2239](https://github.com/apollographql/apollo-client/pull/2239) - Allow conditional refetchQueries [PR #2234](https://github.com/apollographql/apollo-client/pull/2234) diff --git a/src/core/types.ts b/src/core/types.ts index eb22c0f930e..2d7d3d1e2a5 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -33,4 +33,10 @@ export enum FetchType { poll = 3, } -export type IdGetter = (value: Object) => string | null | undefined; +export interface IdGetterObj extends Object { + __typename?: string; + id?: string; +} +export declare type IdGetter = ( + value: IdGetterObj, +) => string | null | undefined;