Add edge between two documents in ArangoDB -
it should easy operation can't find how achieve this. have 2 documents different collections , want link them using new edge existing collection. i'm trying use edge-collection.save function this: edge-collection.save(for s in sy filter s._key=403560128,for in im filter i._key=353031872, points)
doesn't work. how can this?
edge-collection.save()
not expect aql statements trying insert. expecting raw _id
attributes , and thir parameter json object containing additional data edge. store edge described in example can execute following command:
edge-collection.save("sy/403560128", "im/353031872", points); ^^^^^ ^^^^^ ^^^^ sourceid targetid json
Comments
Post a Comment