How to use the assertObjectType function from graphql
Find comprehensive JavaScript graphql.assertObjectType code examples handpicked from public code repositorys.
626 627 628 629 630 631 632 633 634 635
throw new Error(msg); } } function getSecretFieldImpl(schema, listKey, fieldKey) { var _gqlOutputType$getFie, _gqlOutputType$getFie2; const gqlOutputType = graphql.assertObjectType(schema.getType(listKey)); const secretFieldImpl = (_gqlOutputType$getFie = gqlOutputType.getFields()) === null || _gqlOutputType$getFie === void 0 ? void 0 : (_gqlOutputType$getFie2 = _gqlOutputType$getFie[fieldKey].extensions) === null || _gqlOutputType$getFie2 === void 0 ? void 0 : _gqlOutputType$getFie2.keystoneSecretField; assertSecretFieldImpl(secretFieldImpl, listKey, fieldKey); return secretFieldImpl; }
0
0
0
+ 4 other calls in file
graphql.GraphQLNonNull is the most popular function in graphql (4226 examples)