I Want to Do
Filter all branches that don’t have the name master and find their latest version.
What I Did
var(func: uid($repoId)){
Repository.branches @filter(NOT eq(Branch.name, "master")){
Branch.versions {
N as Version.number
}
LV as max(val(N))
}
}
repo_branches(func: uid($repoId), first: 8) @normalize {
Repository.branches(orderasc: Branch.name){
branch_name: Branch.name
Branch.versions @filter(eq(Version.number, val(LV))) {
latest_version: Version.number
}
}
}
Error
"errors": [
{
"message": ": eq expects atleast 1 argument.",
"extensions": {
"code": "ErrorInvalidRequest"
}
}
]
Any idea for why does it happen?
Thanks,
spinelsun