Skip to content

Releases: graphql-compose/graphql-compose-mongoose

v9.0.0-alpha.5

09 Sep 20:48
Compare
Choose a tag to compare
v9.0.0-alpha.5 Pre-release
Pre-release

9.0.0-alpha.5 (2020-09-09)

Code Refactoring

  • get rid of getRecordIdFn(); add test helper functions testOperation() & testFieldConfig() (7e3de3d), closes #262

Features

  • improve typescript definitions (0ac071d)

BREAKING CHANGES

  • if you use ObjectTypeComposer.setRecordIdFn() for customization recordId in mutations payload then you will need use resolvers config options, eg. createOne(model, tc, { recordIdFn: (doc, context) => source.uid }).

v9.0.0-alpha.4

07 Sep 19:31
Compare
Choose a tag to compare
v9.0.0-alpha.4 Pre-release
Pre-release

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

05 Sep 19:50
Compare
Choose a tag to compare
v9.0.0-alpha.3 Pre-release
Pre-release

9.0.0-alpha.3 (2020-09-05)

Features

v9.0.0-alpha.2

05 Sep 11:46
Compare
Choose a tag to compare
v9.0.0-alpha.2 Pre-release
Pre-release

9.0.0-alpha.2 (2020-09-05)

Bug Fixes

  • updateById: pull out _id arg from record. It was an old schema design error. (84574b7)

BREAKING CHANGES

  • updateById: resolver updateById changes its arguments. Before was updateById(record: { _id: 1, name: 'New' }), now became updateById(_id: 1, record: { name: 'New' })

v9.0.0-alpha.1

03 Sep 18:43
Compare
Choose a tag to compare
v9.0.0-alpha.1 Pre-release
Pre-release

9.0.0-alpha.1 (2020-09-03)

Features

  • add payload.error field to all mutation resolvers. If client request error field then typed error will be returned in mutation payload, otherwise it will be on top-level errors field. (bafc03f)
  • improve return types for findByIds & findMany now they returns empty array instead of null (ad6ed68)

BREAKING CHANGES

  • some internal filter type names for args were changed. It may break some clients if you use that type names in your graphql queries:
  • count resolver change name for filter type Filter*Input -> FilterCount*Input

v8.0.3

31 Aug 14:33
aaa59a7
Compare
Choose a tag to compare

8.0.3 (2020-08-31)

Bug Fixes

  • aliases: Consider aliases from discriminators during preparation (#253) (aaa59a7)

v8.0.2

21 Aug 13:12
Compare
Choose a tag to compare

8.0.2 (2020-08-21)

Bug Fixes

  • broken import & update dependencies (3ced48d)

v8.0.1

21 Aug 12:55
Compare
Choose a tag to compare

8.0.1 (2020-08-21)

Bug Fixes

  • required fields in embedded documents became optional for filter args and became optional for update(ById|One|Many) resolvers. All such embedded types are clonned and have its own unique names. (e4fde58)

v8.0.0

16 Aug 18:58
Compare
Choose a tag to compare

8.0.0 (2020-08-16)

Code Refactoring

  • migrate package code base from FlowType to TypeScript (348d09d, 1fa0005)

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

v7.5.0

08 Aug 17:36
Compare
Choose a tag to compare

7.5.0 (2020-08-08)

Features