I just prepared a model which contains two vertices and one edge between them, v1, v2 and e1, while v1 is instance or vertex of class A, and v2 is vertex of class B. e1 is the instance of class E. I wanted to prepare schema in waterline for this kind of relation and the schema looks like this:
identity:'A',
connection:'ex1',
attributes:{
title:'string',
r : {collection:'B', through:'E', via:'A'}
}
identity:'A',
connection:'ex1',
attributes:{
title:'string',
r : {collection:'A', through:'E', via:'B'}
}
while if I use this schema to map into orientdb my fields it shows collection:'B' as a Linkset in A class. I just want to relate them via edges. Is there a way to skip mentioning collections and just build a relation which will map @rid of edge e1 into OUT or IN field of these classes as needed?