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

Core: creating ref on projection item with string value overwrites it #11

Closed
binier opened this issue Sep 30, 2020 · 0 comments
Closed
Labels
Scope: Core Core/QueryBuilder issues Status: In Progress

Comments

@binier
Copy link
Owner

binier commented Sep 30, 2020

query().project(q => ({
  myCount: "count(myField)",
  countRef: q.ref('myCount')
}));

outputs:

{
    q1() {
      myCount: v1 as myCount // <- should be: "myCount: v1 as count(myField)"
      countRef: val(v1)
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Core Core/QueryBuilder issues Status: In Progress
Projects
None yet
Development

No branches or pull requests

1 participant