artindaniel
07/18/2018, 8:00 PMquery {
question(id:"cjjq0h0le2ww60b29ro4tumhc") {
id
}
}
This doesn't work
fragment MyFragment on Question {
id
}
query {
question(id:"cjjq0h0le2ww60b29ro4tumhc") {
...MyFragment
}
}
Error
{
"data": {
"question": null
},
"errors": [
{
"message": "Field 'postDb' of type 'PostDb' must have a sub selection. (line 2, column 3):\n postDb(where: $_v0_where)\n ^",
"locations": [],
"path": [
"postDb"
]
}
]
}
artindaniel
07/18/2018, 8:01 PMartindaniel
07/18/2018, 8:01 PMartindaniel
07/18/2018, 8:02 PMalbinekb
07/18/2018, 8:07 PMThe current workaround is to use a different fieldname in your datamodel.
artindaniel
07/18/2018, 8:09 PMartindaniel
07/18/2018, 8:10 PMartindaniel
07/19/2018, 10:47 AMQuestion
and it's based on the datamodel PostDb
.