query getTestQuestion($id: ID!) {
getTestQuestion(id: $id) {
id
name
draftAnswers {
id
}
answers {
id
}
}
}
when draftAnswers = null and answers != null the query never responds.
Some points to note:
If I put answers before draftAnswers it works. So, the pattern seems to be, whatever comes first in the query cannot be null (tried this by making answers null, and putting it first in the query. Also, when both fields are populated, the query works)
when none of the fields is a list, everything works fine. So this just seems to be an issue with list types.
Using the ID returned from here in the query I posted earlier causes it to fail.
And like I said, in the query, if I put answers before draftAnswers, it works.