Hi,
I have an AQL query which should be able to load values from a dynamic
collection name.
For instance, I have these datas:
entry1:
{ "_id": "entry1/1", "data": {} }
{ "_id": "entry1/2", "data": {} }
{ "_id": "entry1/3", "data": {} }
entry2:
{ "_id": "entry2/1", "data": {} }
{ "_id": "entry2/2", "data": {} }
{ "_id": "entry2/3", "data": {} }
list:
{ "_id": "list/1", "entry": "entry1/1" }
{ "_id": "list/2", "entry": "entry2/3" }
{ "_id": "list/3", "entry": "entry1/2" }
{ "_id": "list/4", "entry": "entry2/1" }
I would like to be able to loop in *list* collection and merge values with
the associated entry.
In this example there is only 2 entry collections, but I could get more.
I tried something like this:
FOR entry IN list
LET itemCollection = SPLIT(entry.entry, "/", 2)[0]
FOR item IN itemCollection
...
But as expected, it doesn't work since *itemCollection* value is a string
and not a collection handle.
If you have any solution, they are welcome. :)
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.