graphql-compose / graphql-compose-mongoose

Mongoose model converter to GraphQL types with resolvers for graphql-compose https://github.com/nodkz/graphql-compose
MIT License
708 stars 94 forks source link

Update DiscriminatorTypeComposer.ts #374

Closed claycoleman closed 2 years ago

claycoleman commented 2 years ago

Provide a better error message when users attempt to call composeWithMongooseDiscriminators without first registering discriminators on their base model (eg baseModel.discriminator("ChildModel", ChildModelSchema)

nodkz commented 2 years ago

Thanks for PR 🙏👍

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 9.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: