Here’s my situation: I have a type A, and a fragment type that implements A. In the fragment type, there is a field X with a filter. So I want to query from type A, and only get entries in which field X complies with the filter. Normally, if field X wasn’t under a fragment, this would be fine to do with @cascade(fields:[“X”]). But @cascade field parameters only work for fields directly on the type you’re implementing it on, not sub-fragments apparently.
This is basically what the code looks like:
query GetData {
getData {
typeA @cascade(fields:["fieldX"]) {
... on fragmentType {
fieldX(filter: theFilter) {
id
}
}
}
}
}
This query gives me an error that fieldX does not exist on typeA. So how can I cascade on fieldX then?