Skip to content

DQL variables don't seem to be supported in arrays #2272

@ondrowan

Description

@ondrowan

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?

1.0.4

  • Steps to reproduce the issue (command/config used to run Dgraph).
query all($a: string, $b: string) {
  all(func: eq(whatever, [$a, $b])) {
    uid,
  }
}

Expected comma or language but got: a

  • Expected behaviour and actual result.

Either I'm doing something wrong or GraphQL variables that are used in arrays don't work. And since it's not possible to define variable as arrays, it also seems impossible to do something like:

query all($a: [string]) {
  all(func: eq(whatever, $a)) {
    uid,
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions