coolqlcool
coolqlcool copied to clipboard
[Feature request] Support nested site query
Thanks for the great library. It would be cooler if we can do nested query like below.
{
hnews: site(url: "https://news.ycombinator.com") {
numberOfTitles: count(elem: "tr.athing")
titles: selectAll(elem: "tr.athing") {
id: attr(name: "id")
numberOfLinks: count(elem: ".storylink")
link: select(elem: ".storylink") {
text
href
site(urlFromAttr: "href") { <-- query site url from href value of the current elem
info: selectAll(elem: ".info") {
text
}
}
}
}
}
}
This would be truly awesome!