You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And when there is an existing disjunction, my intuition to continue to iterate through it, is to use the struct cue.Vertex. But unfortunately I don't see how I can have access to it.
There is the type valueScope that implements the compile.Scope interface so I thought maybe there was a way to create this struct from a value. But so far I didn't find it.
Is it the good way to use cue.Vertex to iterate over a disjunction ? And if yes then could you please tell me how can I have access to it please ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to iterate other a Cuelang schema like this one: https://github.com/perses/perses/blob/main/cue/schemas/datasources/prometheus/prometheus.cue
And when there is an existing disjunction, my intuition to continue to iterate through it, is to use the struct
cue.Vertex
. But unfortunately I don't see how I can have access to it.There is the type
valueScope
that implements thecompile.Scope
interface so I thought maybe there was a way to create this struct from a value. But so far I didn't find it.Is it the good way to use
cue.Vertex
to iterate over a disjunction ? And if yes then could you please tell me how can I have access to it please ?Thanks by advance !
Beta Was this translation helpful? Give feedback.
All reactions