Compass
Compass copied to clipboard
Can document.relate(field) work on Edge Class to connect two Vertices
I would like to have an Edge class connect two documents. How can I do this with document.relate()?
Thanks.
I haven't working on this in a while, would you mind providing pseudo code as an example of what you're trying to do?
There are two Vertices, Apple and Worm. There is an Edge, Has. I would like to relate an Apple Document to a Worm document using the Has Edge. apple_doc.relate(field="in_Has", document=worm_doc) Is that how it is done?
Likewise, I would like to remove to remove this edge relationship. How can I do this?