Razvan
11/10/2020, 10:06 AMdave
11/10/2020, 10:33 AMQuery.required("name", "description").asResult()
Razvan
11/11/2020, 3:56 AMval nameResult = Query.required("name", "description").asResult()
Can I use this in the ContractRoute meta
meta {
queries += nameResult
}
or do I have to declare apart:
val nameLens = Query.required("name", "description")
val nameResult = nameLens.asResult()
neta {
queries += nameLens
}
So the question is can I only declare the result then is possible to pass it in the meta or a way to get from the result the Lens to avoid using the double declaration of variables.dave
11/11/2020, 6:28 AMRazvan
11/11/2020, 10:16 AM