Skip to content

QueryWithVars using after: fails #2099

@llonchj

Description

@llonchj

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

  • What version of Dgraph are you using?

  • Have you tried reproducing the issue with latest release?

  • What is the hardware spec (RAM, OS)?

MacOS 10.13.3 16Gb

  • Steps to reproduce the issue (command/config used to run Dgraph).

This is what i have

    items(func:has(<type:EmailAddress>), orderasc:<type:EmailAddress>, after:$i) @filter(regexp(<address>, /$var/)) {
        uid
        key: <type:EmailAddress>
    }
}```

and vars

```map[$var:@example\.com $i:0x1010]```

- Expected behaviour and actual result.

```rpc error: code = Unknown desc = Expecting a comma. Got: lex.Item [9] "i"```

Metadata

Metadata

Assignees

Labels

kind/bugSomething is broken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions