You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Issues may arise for TypeScript Users if they update graphql-compose-mongoosev5.1.0 or above without matching with graphql-composev5.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 fieldsrp.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