Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
models.forEach(model => {
const type = composeWithMongoose(model, {})
if (!this._graphqlTypes) {
this._graphqlTypes = []
}
this._graphqlTypes.push(type)
})
return this
export function composeWithMongoose(
model: Class,
opts?: any
): ObjectTypeComposer {
return _composeWithMongoose(model, { schemaComposer, ...opts });
}
export function convertSchemaToGraphQL(