tendant / graphql-clj

A Clojure library that provides GraphQL implementation.
Eclipse Public License 1.0
285 stars 22 forks source link

accept Null argument #62

Closed qwwwpp closed 4 years ago

qwwwpp commented 4 years ago

the executor doesn't accept null value, for example, If I define a mutation updateUser(id: String): User , then I querymutation { updateUser() {id}}, it will return java.lang.IllegalArgumentException: No matching clause: :null-value. There are more examples in the argument_test.clj The fix I did is simply pass the null to the resolver function if the argument is a :null-value