diff --git a/src/composeWithMongooseDiscriminators.ts b/src/composeWithMongooseDiscriminators.ts index 01a46c23..b058b6f2 100644 --- a/src/composeWithMongooseDiscriminators.ts +++ b/src/composeWithMongooseDiscriminators.ts @@ -1,10 +1,10 @@ import { schemaComposer as globalSchemaComposer } from 'graphql-compose'; -import type { Model, Document } from 'mongoose'; +import type { Model } from 'mongoose'; import { ComposeWithMongooseDiscriminatorsOpts, DiscriminatorTypeComposer } from './discriminators'; export * from './discriminators'; -export function composeWithMongooseDiscriminators( +export function composeWithMongooseDiscriminators( baseModel: Model, opts?: ComposeWithMongooseDiscriminatorsOpts ): DiscriminatorTypeComposer {