No input field null validation on non nullable fields

Edit : OK I think this time I narrowed down and understood the issue : if I take again the example above, this mutation gives the problem with no input validation :

mutation {
	addPerson(input: {
		name: "Test"
	}) {
		person {
			id
		}
	}
}

But the correct syntax, which gets validated as expected, is as follows (please note the [ ], as the input should be a list) :

mutation {
	addPerson(input: [{
		name: "Test"
	}]) {
		person {
			id
		}
	}
}

IMHO, this should at least be documented to avoid others wasting hours on this issue !

Thanks again for all the hard work !

1 Like