Replies: 1 comment
-
never mind, this works:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
never mind, this works:
|
Beta Was this translation helpful? Give feedback.
-
Sometimes it's hard to think in datalog, if I have
and
ids
is a list of strings passed in, but the id in the friend relation isUuid
. I've managed to useto_uuid
when dealing with a single value, but not sure how to accomplish it with a list.I also tried
to_string(id) in $ids
andis_in(to_string(id), $ids)
EDIT: I came up with something that works, but I have to pass the ids twice.
here
id_grouped
is[ [ uuid-1 ], [ uuid-2 ] ]
and
id_list
is[ uuid-1, uuid-1 ]
I don't know how to pass it only once (convert to a list somehow?)
Thank you
Beta Was this translation helpful? Give feedback.
All reactions