Dgraph supports composite indexes?

Nops, indexing are predicate based. But you can do it in another way.

index both first_name and last_name, and then query for:

{
  me(func: eq(first_name, "Steven")) @filter(eq(last_name, "Spielberg")) {
    first_name
    last_name
  }
}
1 Like