Skip to content

Commit b4cf959

Browse files
committed
put stuff int the cache
1 parent f5ce2d2 commit b4cf959

File tree

1 file changed

+2
-0
lines changed
  • packages/plugins/other/visitor-plugin-common/src

1 file changed

+2
-0
lines changed

packages/plugins/other/visitor-plugin-common/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,5 +516,7 @@ export function isOneOfInputObjectType(
516516
((namedType as unknown as Record<'isOneOf', boolean | undefined>).isOneOf ||
517517
namedType.astNode?.directives?.some(d => d.name.value === 'oneOf'));
518518

519+
isOneOfTypeCache.set(namedType, isOneOfType);
520+
519521
return isOneOfType;
520522
}

0 commit comments

Comments
 (0)