Inconsistent behavior for a complex query
Closed this issue · 3 comments
nasushkov commented
I have a hierarchical query which looks like this:
roomJobSettings (style: "${style}"){
roomType,
jobGroup {
id,
//...
jobCategory {
id,
//...
},
materialType {
id,
//...
materials {
id,
//...
jobGroupMaterials {
//..
},
materialStyles (style: "${style}") {
id,
//...
}
}
}
}
}
For some reason this query result for materialStyles is inconsistent: sometiimes it retrieves something and sometimes it's empty. What can be the reason for this?
koskimas commented
I'm pretty sure this is a user error. There is nothing random about this library. The results should be deterministic. I'll investigate if you can provide a standalone reproduction that I can debug.
koskimas commented
Is style
marked as an enum in jsonSchema
?