Hey all, I'm having following problem: This works ...
# orm-help
a
Hey all, I'm having following problem: This works
Copy code
query { 
	question(id:"cjjq0h0le2ww60b29ro4tumhc") {
    id
  }
}
This doesn't work
Copy code
fragment MyFragment on Question {
  id
}

query { 
	question(id:"cjjq0h0le2ww60b29ro4tumhc") {
    ...MyFragment
  }
}
Error
Copy code
{
  "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"
      ]
    }
  ]
}
This might be connected to it
Anybody knows how to fix this?
a
The current workaround is to use a different fieldname in your datamodel.
a
Not sure if I understand this correctly. Does that mean I have to resolve each field manually?
Could you give me a quick example?
@albinekb Could you elaborate? The name of my yoga model is
Question
and it's based on the datamodel
PostDb
.