Nested Object Queries
info
This is an example of a nested query, where multiple objects can be queried in a hierarchical manner.
danger
The maximum depth is 2.
In this example we are getting the Allnodes
provider, its related Reward Options
and their Validators
{
providers(where: {names: ["Allnodes"]}, limit: 1) {
id
name
slug
rewardOptions(where: {typeKeys: ["pos"]}, limit: 10) {
id
inputAssets(limit: 10) {
name
}
validators(limit: 10) {
id
address
}
}
}
}