Releases: graphql-compose/graphql-compose-mongoose
Releases · graphql-compose/graphql-compose-mongoose
v9.0.0-alpha.5
9.0.0-alpha.5 (2020-09-09)
Code Refactoring
- get rid of
getRecordIdFn(); add test helper functionstestOperation()&testFieldConfig()(7e3de3d), closes #262
Features
- improve typescript definitions (0ac071d)
BREAKING CHANGES
- if you use
ObjectTypeComposer.setRecordIdFn()for customizationrecordIdin mutations payload then you will need use resolvers config options, eg.createOne(model, tc, { recordIdFn: (doc, context) => source.uid }).
v9.0.0-alpha.4
9.0.0-alpha.4 (2020-09-07)
Features
- add new resolvers
dataLoader,dataLoaderLean,dataLoaderMany,dataLoaderLeanMany. These resolvers are quite helpful for relations construction between Entities for avoiding the N+1 Problem. (05a3355)
v9.0.0-alpha.3
9.0.0-alpha.3 (2020-09-05)
Features
- add new resolvers
findByIdLean,findByIdsLean,findByManyLean,findByOneLeanwhich returns data from DB without instantiating a full Mongoose documents. It's faster in several times but doesn't support getters & virtuals fields. See https://mongoosejs.com/docs/tutorials/lean.html#using-lean (e10713b), closes #140
v9.0.0-alpha.2
9.0.0-alpha.2 (2020-09-05)
Bug Fixes
- updateById: pull out
_idarg fromrecord. It was an old schema design error. (84574b7)
BREAKING CHANGES
- updateById: resolver
updateByIdchanges its arguments. Before wasupdateById(record: { _id: 1, name: 'New' }), now becameupdateById(_id: 1, record: { name: 'New' })
v9.0.0-alpha.1
9.0.0-alpha.1 (2020-09-03)
Features
- add
payload.errorfield to all mutation resolvers. If client requesterrorfield then typed error will be returned in mutation payload, otherwise it will be on top-levelerrorsfield. (bafc03f) - improve return types for
findByIds&findManynow they returns empty array instead of null (ad6ed68)
BREAKING CHANGES
- some internal
filtertype names for args were changed. It may break some clients if you use that type names in your graphql queries:
countresolver change name for filter typeFilter*Input->FilterCount*Input
v8.0.3
v8.0.2
v8.0.1
v8.0.0
8.0.0 (2020-08-16)
Code Refactoring
BREAKING CHANGES
- Drop old builds
node8,es,mjs– they were created several years ago and no need to prepare them for node v10. They were created in node v6 & node v8 time where using async/await without transpilations gave a performance boost. Nowadays there is no need for such specific builds. - FlowType definitions no more available in this package