Perhaps related to #2132 and #2060
This query:
{
person(id: "/people/1") {
_id
name
}
}
(Where $id on the model is a private field with just a getter, like in the example project) produces this error:
{
"errors": [
{
"debugMessage": "Cannot return null for non-nullable field Person._id.",
"message": "Internal server error",
"category": "internal",
"locations": [
{
"line": 3,
"column": 5
}
],
"path": [
"person",
"_id"
]
}
],
"data": {
"person": null
}
}
Can be fixed by including id in the query:
{
person(id: "/people/1") {
id
_id
name
}
}
{
"data": {
"person": {
"id": "/people/1",
"_id": 1,
"name": "Alice"
}
}
}
Maybe this is not a priority until the refactoring of #2022 has been carried out.
Perhaps related to #2132 and #2060
This query:
{ person(id: "/people/1") { _id name } }(Where
$idon the model is a private field with just a getter, like in the example project) produces this error:{ "errors": [ { "debugMessage": "Cannot return null for non-nullable field Person._id.", "message": "Internal server error", "category": "internal", "locations": [ { "line": 3, "column": 5 } ], "path": [ "person", "_id" ] } ], "data": { "person": null } }Can be fixed by including
idin the query:{ person(id: "/people/1") { id _id name } }{ "data": { "person": { "id": "/people/1", "_id": 1, "name": "Alice" } } }Maybe this is not a priority until the refactoring of #2022 has been carried out.