Skip to content

Releases: graphql-compose/graphql-compose-mongoose

v5.2.0

12 Dec 13:49
Compare
Choose a tag to compare

5.2.0 (2018-12-12)

Features

  • add support for required properties (61a9f41), closes #144

v5.1.1

05 Nov 16:51
Compare
Choose a tag to compare

5.1.1 (2018-11-05)

Bug Fixes

v5.1.0

22 Sep 11:25
e18cf8f
Compare
Choose a tag to compare

5.1.0 (2018-09-22)

TypeScript BREAKING (TypeScript Users) (#126)

Note: Issues may arise for TypeScript Users if they update graphql-compose-mongoose v5.1.0 or above without matching with graphql-compose v5.2.0 or above.
A TypeScript User with this a package that has this changes, will need to update graphql-compose to at least v5.2.0

Bug Fixes

  • TypeScript: adjust composeMongoose types to support new TypeComposer typings

Features

  • TypeScript: add typings for DiscriminatorTypeComposer, add helpers for resolver args, get by ${ResolverName}Args (#126) (e18cf8f)
PostTC.getResolver('findMany').wrapResolve<any, FindManyArgs<IPost>>(
  next => rp => {
    if (rp.source && rp.args) {
      rp.args.limit = 50;
      // fix this to display only Post fields.
      // Avoid Document fields
      rp.args.filter.title = 'New Title';
      // rp.args.filter.title = 5;
      // rp.args.limit = 'limit';
    }
  },
);
  • TypeScript: add TArgs and TArgsMap to DiscriminatorTypeComposer

Chore

  • update graphql-compose to v5.2.0 as it contains TArgs, TArgsMap changes

  • update graphql-compose to v5.1.1 this is to get all the latest changes that were made on TypeComposer

v5.0.0

05 Sep 20:28
Compare
Choose a tag to compare

5.0.0 (2018-09-05)

chore

BREAKING CHANGES

  • drop Node 4 support, requires node >= v6.0.0

v4.6.2

29 Aug 15:31
Compare
Choose a tag to compare

4.6.2 (2018-08-29)

Bug Fixes

  • Typescript: missing createMany in TypeConverterResolverOpts (b2e9ae7)

v4.6.1

29 Aug 03:44
Compare
Choose a tag to compare

4.6.1 (2018-08-29)

Bug Fixes

v4.6.0

13 Aug 11:27
Compare
Choose a tag to compare

4.6.0 (2018-08-13)

Features

v4.5.3

11 Aug 10:24
Compare
Choose a tag to compare

4.5.3 (2018-08-11)

Bug Fixes

  • set min mongoose version 4.4.0, more earlier versions are vulnerable to remote memory exposure. (b036bf4)

v4.5.2

10 Aug 12:08
Compare
Choose a tag to compare

4.5.2 (2018-08-10)

Bug Fixes

v4.5.1

09 Aug 20:01
Compare
Choose a tag to compare

4.5.1 (2018-08-09)

Bug Fixes

  • package: include .d.ts files to the distributed package (3b2bbe2)