Hello,
I was wondering if it would be possible to use @requires on a query or mutation ?
For example let’s say I have:
SubGraphA:
query {
QueryA(var1: String, var2: Int): Boolean @requires (fields: "QueryB")
}
and SubGraphB:
query {
QueryB: String
}
If it’s possible, can we pass the variables from QueryA to QueryB using @requires ?
Like this:
query {
QueryA(var1: String, var2: Int): Boolean @requires (fields: "QueryB(var1, var2)")
}
and with :
query {
QueryB: String
}