Skip to content

v5.1.0

Compare
Choose a tag to compare
@nodkz nodkz released this 22 Sep 11:25
· 249 commits to master since this release
e18cf8f

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