Releases: graphql-compose/graphql-compose-mongoose
Releases · graphql-compose/graphql-compose-mongoose
v5.2.0
v5.1.1
v5.1.0
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
andTArgsMap
toDiscriminatorTypeComposer
Chore
-
update
graphql-compose
to v5.2.0 as it containsTArgs
,TArgsMap
changes -
update
graphql-compose
to v5.1.1 this is to get all the latest changes that were made onTypeComposer