We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed5b3f commit c6b8dcaCopy full SHA for c6b8dca
src/core/scalars.resolver.ts
@@ -22,7 +22,7 @@ for (const scalar of getRegisteredScalars()) {
22
const typeFn =
23
scalar instanceof GraphQLScalarType
24
? () => scalar
25
- : Reflect.getMetadata(SCALAR_TYPE_METADATA, scalar);
+ : Reflect.getMetadata(SCALAR_TYPE_METADATA, scalar) ?? (() => scalar);
26
27
const key = `unstable_stub${name}`;
28
const cls = ScalarResolver.prototype as any;
0 commit comments