Introducing the "this" keyword and function edges to GraphQL+-

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))
  }
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.