Validation for (required) query / mutation arguments
anmonteiro opened this issue · 5 comments
anmonteiro commented
The same way this PPX validates if a queried field is not present in the schema, I think it could validate that a required argument isn't passed to a query or a mutation?
I just ran into this and the server threw a runtime error. I think it could be caught at compile time. Is this on the roadmap?
wokalski commented
I think it is. It's in the Limitations
section of the readme.
anmonteiro commented
Thanks for clarifying, I wasn't sure if this is what that bullet point was referring to.
johnhaley81 commented
👋 this issue hasn't had a lot of activity on it but I was wondering if there was a good place to start to try to fix this? Thanks :)
baransu commented
baransu commented
I have PR to baransu/graphql_ppx_re implementing such check. If you're interested you can take a look :)