[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Cannot create nullable resolver arguments.
Resolver arguments should support the same/sub-set of options as in type-graphql:
Again, sorry for my poor english, here is a small test case to demonstrate the expected behaviour: https://github.com/zhenwenc/nest-graphql-issues/blob/master/test/arguments-options.spec.ts
Nest version: 6.0.0
It should be fixed in 6.0.1 :) Let me know if you face any issue
How is this supposed to be used? Can you give an example code?
@Args({
name: 'id',
type: () => String,
nullable: false,
defaultValue: '1',
})

You need to change your documentation. It should be:
getAuthor(
@Args( { name: "firstName", nullable: true }) firstName?: string,
@Args( { name: "lastName", defaultValue: '' }) lastName?: string,
) {}
Most helpful comment