INNER CODE UNIT · TypeScript
GraphQLInputObjectType
OS-Guild/graphql-to-mongodb · src/graphQLFilterType.ts:71
return cache(typesCache, typeName, () => new GraphQLInputObjectType({
name: typeName,
fields: getInputObjectTypeFields(type, ...excludedFields)
}));
}
function getInputObjectTypeFields(type: GraphQLFieldsType, ...excludedFields: string[]): () => FieldMap<GraphQLInputType> {
return () => {
const generatedFields = getUnresolvedFieldsTypes(type, getGraphQLObjectFilterType, ...excludedFields)();
warnOfIndependentResolveFields(type);
generatedFields['opr'] = { type: GetOprExistsType() };
return generatedFields;
};
}