Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return query block even if no value exists #1533

Closed
davedbase opened this issue Sep 26, 2017 · 0 comments
Closed

Return query block even if no value exists #1533

davedbase opened this issue Sep 26, 2017 · 0 comments
Assignees
Milestone

Comments

@davedbase
Copy link

davedbase commented Sep 26, 2017

When submitting multiple queries (or a single query) it would be a good idea of the response at least propagated an empty block namespace. Take for example:

{
  CheckUsername(func: has(Account)) @filter(eq(Account, "foobar")) {
    Exists : count(Email)
  }
  CheckEmail(func: has(Account)) @filter(eq(Email, "[email protected]")) {
    Exists : count(Account)
  }
}

If neither account values are found the response is completely empty. It would be great if at least the response came back with an empty property that can be checked against (for consistency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants