Skip to content

v9.0.0-alpha.10

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Sep 20:35
· 86 commits to master since this release

9.0.0-alpha.10 (2020-09-15)

Bug Fixes

  • revert "Null fields in mongo return sub fields". It brokes aliases and old behavior was quite expensive with .toObject call. (ae34da9)

Code Refactoring

  • move out important methods from composeWithMongose to composeMongose module (bc9fb7d)

Features

  • expose resolverFactory for manual resolver creation, eg. for cloned types: resolverFactory.findMany(UserModel, ClonedUserTC, opts) – it generates Resolver's types according to ClonedUserTC type and will use mongoose UserModel for making requests to DB (b62ef6f)
  • nested aliases are now supported for filter, projection & lean (d27f79a)

BREAKING CHANGES

  • remove default export from package. Use import { composeMongoose } from 'graphql-compose-mongoose';