When I use:
{
getVals(func: has(products)) {
productsUid as uid
products @filter(eq(productId, 19610626)) {
productUid as uid
options @filter(eq(optionId, 32661491)) {
optionUid as uid
}
}
}
}
I still get:
io.grpc.StatusRuntimeException: UNKNOWN: while parsing query: “{\n getVals(func: has(products)) {\n productsUid as uid\n \tproducts @filter(eq(productId, 19610626)) {\n productUid as uid\n options @filter(eq(optionId, 32661491)) {\n optionUid as uid\n }\n }\n }\n}”: Some variables are defined but not used