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
[GROQ] Joins fail depending on depth of query #2017
Comments
I think Depth of 2 (failing) is wrong. It should be:
|
Agreed @atombender, but it seems like even when adding that in it returns an empty array |
@atombender it doesn't look to be syntax error unfortunately as the prior example also uses From what I can tell with GROQ |
Indeed, this may be touching on a long-standing bug with regard to the |
@atombender am I right in thinking this is still an issue? I noticed it's been acknowledged on the docs |
Yes. The good news is that we have a fix forthcoming in a new API version. I don't have a release date for you yet, but it's possible we're going to allow some beta testing soon. I'll get back to you. |
The new API version is live now. Do you think you can you test your use case against the new version? |
Thanks @atombender I'll give it a shot 👍 |
About
There seems to be a bug in GROQ (running queries in "vision") where joins don't resolve past a depth of one.
This may be related to #1918
Reproduction
Depth of 1 (working)
Reproduction
Here is an example of a query with a join (of depth 1)
Expected result
A flat list of ID's
Actual result ✅
A flat list of ID's
Depth of 2 (failing) <--- the bug
Here is an example of a query with a join (of depth 2)
Expected result
A flat list of ID's
Actual result ❌
An empty array
{ "authors": [] }
Depth of 2 (working)
Here is an example of a query with a join (of depth 2)
Expected result
A nested list of ID's
Actual result ✅
A nested list of ID's
The text was updated successfully, but these errors were encountered: