Understanding the use of '@' in groq for reading fields outside of the reference context.
Last updated: Nov 9, 2023
Hi!In groq, while resolving a reference, I want to read a field outside of the reference context. From the 'Query Cheat Sheet - GROQ' I understand the '@' to let me do this, but I am not able to make it work. Does the '@' not work as documented, or am I misunderstanding something?
In the example below I am trying to read the 'isSignLanguage'-field from inside 'rightsList'. See image from Vision:
Nov 9, 2023, 12:35 PM
What do you get if you do
Nov 9, 2023, 12:37 PM
All the content of the document referred to in rightsList:
Nov 9, 2023, 1:06 PM
returns the current scope. I think you may want
to access the parent scope (you may need to chain two in your case).