Skip to content

Commit 9a45136

Browse files
committed
Rename to maybeCoerceToScalarValue
1 parent 99498a2 commit 9a45136

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cache/inmemory/policies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ export class Policies {
898898
: fieldName + ":" + storeFieldName;
899899
}
900900

901-
public maybeCoerceScalarValue(
901+
public maybeCoerceToScalarValue(
902902
value: StoreValue,
903903
options: CoerceValueOptions
904904
) {

src/cache/inmemory/readFromStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class StoreReader {
361361
);
362362
}
363363
} else if (!selection.selectionSet) {
364-
fieldValue = policies.maybeCoerceScalarValue(fieldValue, {
364+
fieldValue = policies.maybeCoerceToScalarValue(fieldValue, {
365365
field: selection,
366366
typename: context.store.getFieldValue<string>(
367367
objectOrReference,
@@ -495,7 +495,7 @@ export class StoreReader {
495495
assertSelectionSetForIdValue(context.store, field, item);
496496
}
497497

498-
return context.policies.maybeCoerceScalarValue(item, {
498+
return context.policies.maybeCoerceToScalarValue(item, {
499499
field,
500500
typename: context.store.getFieldValue<string>(
501501
parentObjectOrReference,

0 commit comments

Comments
 (0)