Open OKNoah opened 7 years ago
This has been added here in my fork: https://github.com/OKNoah/ormjs/commit/3f3c81a1215fb8f705f03a5e97833153c9ab6b37
@MegaUITeam Good point, but not all associates will be edge collections, they might just be sub-docs. So there might have to be an option like { user: User, edge: true }
.
@MegaUITeam Also, edge collections can have their own fields, so there needs to be a way to define those. And a name could be helpful cause there can be multiple edges for different purposes, I think.
User/Noah -> Loves -> User/Rose
User/Rose -> Blocks -> User/Noah
Hi, I'd like to work a bit on this package. I've forked it at https://github.com/OKNoah/ormjs.
I'm pretty new to ArangoDB.
I'd like to try add support for modelling edge collections. I believe this is done by
var actsIn = db._createEdgeCollection("actsIn");
in the javascript driver, as seen here: https://github.com/arangodb/Cookbook/blob/master/recipes/Graph/ExampleActorsAndMovies.mdI'm just thinking of the syntax now. Open to suggestions. Perhaps like this.