-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Named queries without variables don't parse #3994
Copy link
Copy link
Closed
Labels
area/parsingIssues related to the parser or lexer.Issues related to the parser or lexer.area/querylang/varsIssues related to queries with GraphQL variablesIssues related to queries with GraphQL variableskind/bugSomething is broken.Something is broken.priority/P2Somehow important but would not block a release.Somehow important but would not block a release.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
Milestone
Metadata
Metadata
Assignees
Labels
area/parsingIssues related to the parser or lexer.Issues related to the parser or lexer.area/querylang/varsIssues related to queries with GraphQL variablesIssues related to queries with GraphQL variableskind/bugSomething is broken.Something is broken.priority/P2Somehow important but would not block a release.Somehow important but would not block a release.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
What version of Dgraph are you using?
v1.1.0
Have you tried reproducing the issue with the latest release?
yes
What is the hardware spec (RAM, OS)?
playground
Steps to reproduce the issue (command/config used to run Dgraph).
Running this query works:
But if you realize that the query doesn't use the variable and you decide to remove it:
You get the error:
Expected behaviour and actual result.
It should just parse it correctly