No input field null validation on non nullable fields

Sorry for resurrecting this old thread, but this bug seems to be present yet, on dgraph/dgraph:latest on docker.

Let’s have the following schema:

type Person {
  id: ID!
  name: String!
  firstname: String!
}

This mutation gives expected result:

mutation {
	addPerson(input: {
		name: "Test"
		firstname: null
	}) {
		person {
			id
			name
			firstname
		}
	}
}
{
	"errors": [
		{
			"message": "Expected type String!, found null.",
			"locations": [
				{
					"line": 4,
					"column": 14
				}
			]
		}
	]
}

But this mutation shows that input doesn’t get null validation:

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