Hi,
The query below inserts the object {title: "c"} *twice* in collection_2.
However I want only *one* insert for the second collection.
The question is how to scope the FOR loop in this case?
Brackets are not accepted.
LET array = [{title: "a"},{title: "b"}]
FOR item IN array
INSERT item INTO collection_1
INSERT {title: "c"} INTO collection_2
Many thanks!
Klaas van der Molen
--
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].
To view this discussion visit
https://groups.google.com/d/msgid/arangodb/6400b38d-9a70-408e-a3d5-811b01456120n%40googlegroups.com.