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

Array dereferencing not working, regression in [email protected] #300

Open
2 tasks done
matthiaaas opened this issue Oct 12, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@matthiaaas
Copy link

matthiaaas commented Oct 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Dereferencing an array type like this isn't working from [email protected] and onwards:

q("sections", { isArray: true })
  .filter()
  .deref()
  .grab({})

Groqd expects the order of .deref() followed by .filter(), which won't produce the intended query of sections[]->, but rather sections->[].

@matthiaaas matthiaaas added the bug Something isn't working label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant