A lot of power could be added to GraphQL+ - if we could do something like the following closer to the data (in Dgraph) instead of in the application layer:
{
me(func: uid(0xabcd)) {
firstName@en
lastName@en
fullName : @func(concat( this.firstName@en, ' ', this.lastName@en))
}
}
{
me(func: uid(0xabcd)) {
firstName@en
lastName@en
fullName : @func(concat( this.firstName@en, ' ', this.lastName@en))
married: @func(if(count(this.isMarriedTo) > 0, true, false))
}
}