Setup fully automated package publishing via semantic-release. Changelog is generated automatically and can be found here: https://github.com/nodkz/graphql-compose-mongoose/releases
- fix: Resolvers now return mongoose documents. It's useful for your resolver wrappers. Now you have access to virtual fields, model methods via
source
orsource.record
. - Update dependencies
- Update order of imported modules, due eslint warnings
- Flow 0.32
- Add support for
mongoose.Schema.Types.Mixed
type. Many thanks to @taion for his graphql-type-json package.
- Resolvers
findOne
andfindById
now by default return object with data, not mongoose document.
- fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's too tricky to use Map/Set in ES5.
- fix: babel build process
- Update packages, add
babel-plugin-transform-runtime
for build process. Fix issue for vanilla node.js users without babel (thanks @jacobbubu).
- Fix
projection
extraction fromrecord
forupdateById
andupdateOne
resolvers. - Intermediate types now passed to TypeStorage (Enums, SubSchemas) when converting mongoose models.
- Added typeStorage. If you create resolver in second time, it should reuse existed internal types
- Expose
fieldsConverter
methods - Fix filterHelper: if
filter
InputType without fields, then do not add it to args - Fix projectionHelper: make projection flat, before passing to mongoose
- Add
convertSchemaToGraphQL
method for creating cached graphql type from MongooseSchema
- HotFix for connection resolver
- HotFix for operators' types in
filter
helper
- Fix
peerDependencies
- Update
flow
till 0.29 - Other small fixes
- Add connection resolver
- Add support for filtering with operators $gt, $gte, $lt, $lte, $ne, $in, $nin
- Small fixes
- Rename
input
argument torecord
for mutations (duegraphql-compose-relay
compatibility).input
is a reserved name for mutations' arg in Relay, and may contains not only document/record data (eg. clientMutationId, sort and filter args). So better solution forgraphql-compose-mongoose
do not use this name, causegraphql-compose-relay
get all args from mongoose resolvers and put them toinput
arg.
- Refactor Resolvers due changes in graphql-compose api
- Exports flow annotations
- First beta version
- Initial commit