Using Golang: Non-nullable field 'firstName' (type String!) was not present in result from Dgraph

Finally resolved my issue.

I found this posting:

Different format for inserting data between graphql and dgraph client - #3 by anargu

Running a mutation with the struct changed like:

EmailAddress   string     `json:"User.emailAddress,omitempty"`

Gives me:

The documentation should really point this issue out. As someone who is going through the test files and doesn’t have a similar situation where I’m altering the schema (with dql) AND then doing a mutation.

Regardless, I can take this as a learning experience and move on. :grinning:

2 Likes