Closed ziimakc closed 1 month ago
Hi, thanks for reporting (and for the workaround)! Would you be interested in submitting a PR for this?
No.
Just encountered this issue with the nullable Object and the directiveValidation: false
workaround isn't working for some reason (and is not viable for me anyway as I use directives quite extensively).
I can see that PR is waiting for a review for over 6 months already. I have tested the #67 locally and it seems to be working just fine, I have not noticed any issues. Is there any reason why the PR isn't merged yet? Any help needed?
Hey @TimShilov , thank you for your offer of help! This PR dropped off my radar, apologies for this! The only thing blocking the merging is the resolution of one of the open thread which I think is okay to resolve, but if you have any ideas, I'm all ears! I'll aim to get this PR merged once everyone is happy :)
UPD. Found a workaround by setting
directiveValidation: false
, in my case it doesn't matter as I don't use directive mercurius validation.For gql type
CreateInput
argsnums
anddescription
are optional, so we can pass{ nums: null, description: null }
inCreateInput
:Validation:
For some reason I get error when
{ nums: null }
is passed as argument while{ description: null }
or{ nums: [] }
works: