How to use the isInputObjectType function from graphql
Find comprehensive JavaScript graphql.isInputObjectType code examples handpicked from public code repositorys.
1470 1471 1472 1473 1474 1475 1476 1477 1478 1479
} const whereInputFields = list.types.where.graphQLType.getFields(); for (const fieldKey of Object.keys(list.fields)) { var _whereInputFields$fie, _fieldFilterFields$co; const filterType = (_whereInputFields$fie = whereInputFields[fieldKey]) === null || _whereInputFields$fie === void 0 ? void 0 : _whereInputFields$fie.type; const fieldFilterFields = graphql.isInputObjectType(filterType) ? filterType.getFields() : undefined; if ((fieldFilterFields === null || fieldFilterFields === void 0 ? void 0 : (_fieldFilterFields$co = fieldFilterFields.contains) === null || _fieldFilterFields$co === void 0 ? void 0 : _fieldFilterFields$co.type) === graphql.GraphQLString) { var _fieldFilterFields$mo; searchableFields.set(fieldKey, (fieldFilterFields === null || fieldFilterFields === void 0 ? void 0 : (_fieldFilterFields$mo = fieldFilterFields.mode) === null || _fieldFilterFields$mo === void 0 ? void 0 : _fieldFilterFields$mo.type) === nextFields.QueryMode.graphQLType ? 'insensitive' : 'default'); }
0
0
1
+ 8 other calls in file
graphql.GraphQLNonNull is the most popular function in graphql (4226 examples)