I would like to return a custom info if some conditions are meeted.
Example
{
user_found: true
}
Is this possible ?
I would like to return a custom info if some conditions are meeted.
Example
{
user_found: true
}
Is this possible ?
Nope, we don’t support custom fields. But you can use “math()” func to check and return a boolean.
cond(a, b, c)
first operand must be a boolean selectsb
ifa
is true elsec
More about it Get started with Dgraph