Replies: 5 comments 4 replies
-
An alias would probably help here. If you try that, your experience might intersect with mine in #380, though there's no embedding here. |
Beta Was this translation helpful? Give feedback.
-
Yeah, actually I just found #380 and saw your ref to my issue after finishing reading it 😂. Indeed, there's no embedding here, but the alias/self reference would be really helpful in that case too. I think I've tried tried every syntax guess (like |
Beta Was this translation helpful? Give feedback.
-
It's like learning C: "Did you try adding an asterisk? How many did you add? Try another one." |
Beta Was this translation helpful? Give feedback.
-
FYI, we have discussions enabled for this repo, helping the GitHub folks to try out that beta. This is a perfect candidate for a discussion. Indeed, I'm going to try and press a button now that will convert this to a discussion. Fingers crossed it will work... apologies in advance if it doesn't! |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#430. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
I want to reference a field from the parent scope of a definition, is there a way to do that ?
Obviously the problem here is that the nested field has the same name than the parent field, so it resolve to itself. Currently the only fix I found was to create an hidden alias field:
It's working but it would be nice if I could directly reference the root field in some way.
Beta Was this translation helpful? Give feedback.
All reactions