diff --git a/src/@apollo/client/cache/inmemory/ApolloClient__Cache_InMemory_Policies_FieldPolicy.res b/src/@apollo/client/cache/inmemory/ApolloClient__Cache_InMemory_Policies_FieldPolicy.res index 9f7f455..9bacec6 100644 --- a/src/@apollo/client/cache/inmemory/ApolloClient__Cache_InMemory_Policies_FieldPolicy.res +++ b/src/@apollo/client/cache/inmemory/ApolloClient__Cache_InMemory_Policies_FieldPolicy.res @@ -20,7 +20,8 @@ module StorageType = { module FieldFunctionOptions = { type unimplemented - + type reference = {__typename: string, id: string} + module Js_ = { // export interface FieldFunctionOptions, TVars = Record> { // args: TArgs | null; @@ -55,7 +56,7 @@ module FieldFunctionOptions = { "canRead" @bs.send external readField: t => ReadFieldFunction.Js_.t = "readField" @bs.send - external toReference: t => ToReferenceFunction.t = "toReference" + external toReference: (t, reference) => string = "toReference" } type t = { @@ -65,7 +66,7 @@ module FieldFunctionOptions = { field: Js.nullable, variables: option>, isReference: bool, - toReference: unimplemented, + toReference: (~id: string, ~typename: string,) => string, storage: Js.nullable, cache: ApolloCache.t, readField: unimplemented, @@ -80,7 +81,9 @@ module FieldFunctionOptions = { field: js.field, variables: js.variables, isReference: js.isReference, - toReference: js.toReference, + toReference: (~id, ~typename) => { + js->Js_.toReference({id: id, __typename: typename}) + }, storage: js.storage, cache: js.cache, readField: js.readField,