Paul Damnhorns
Paul Damnhorns
@riggedCoinflip you need to add projection property: ```ts const ageForTC = { age: { type: "Int", description: 'Uses the virtual "age" that is calculated from DateOfBirth. Returns -1 if DateOfBirth...
You may wrapResolvers (https://graphql-compose.github.io/docs/en/basics-resolvers.html) with your additional logic. After success wrapping one resolver, you may write a helper function which will do it for all your needed types/resolvers.
@kstott I've just added a test case for your issue and there is no problem: https://github.com/graphql-compose/graphql-compose-mongoose/blob/master/src/__tests__/github_issues/289-test.ts#L57 In the test case, you may see generated SDL and in the screenshot below...
You may use `Resolver.addFilterArg` method: https://github.com/graphql-compose/graphql-compose/issues/22
Pull request welcome ;) See resolvers folder. It's quite simple.
Nope, everything stays the same from the last PR https://github.com/graphql-compose/graphql-compose-mongoose/commit/eecf9eab1b09b05f19ec67d24b7ccb35d06e00f8 Maybe something changed in mongoose?! But how I see today tests passed successfully - https://travis-ci.org/github/graphql-compose/graphql-compose-mongoose/builds/716152379 @MDrooker can you open PR...
@dmfilipenko thanks for the information. I'll look at this problem in the near time. In the ideal world, this should work as you write in the first comment. BTW. Many...
You may add it manually: ```ts CreateOneResolver.getArgITC('record').setField('type', 'String!'); ``` graphql-compose allows modifying all generated types as you wish. Anyway, feel free to write your custom resolver if you met with...
Yep, it can be added but need to think about how it can be implemented. `CharacterSchema.set('discriminatorKey', 'type');` added to mongoose schema without any hint about what exactly type is used...
Hi, Kristoffer. Nice to hear that you start developing `knex` adapter. Yep, for "generating" exists two approaches: 1. Models -> GraphQL Types (current `graphql-compose-mongoose` implementation) 2. GraphQL Types -> Models...