We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FieldConfig.type
1 parent 53751f0 commit 485a284Copy full SHA for 485a284
src/__tests__/__testSchema__/query.auth/isLoggedIn.ts
@@ -1,4 +1,4 @@
1
export default {
2
- type: 'Boolean',
+ type: (sc) => sc.get('Boolean'),
3
resolve: () => true,
4
};
src/astToSchema.ts
@@ -224,6 +224,9 @@ function isSomeOutputTypeDefinition(type: any): boolean {
224
} else if (Array.isArray(type)) {
225
// type: ['String']
226
return isSomeOutputTypeDefinition(type[0]);
227
+ } else if (isFunction(type)) {
228
+ // pass thunked type without internal checks
229
+ return true;
230
} else {
231
// type: 'type User { name: String }'
232
return isComposeOutputType(type);
0 commit comments