Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many-to-many associations using edges #29

Closed
dmarcelino opened this issue Dec 31, 2014 · 1 comment
Closed

Many-to-many associations using edges #29

dmarcelino opened this issue Dec 31, 2014 · 1 comment

Comments

@dmarcelino
Copy link
Member

Currently waterline-orientdb uses a junction table for many-to-many associations, just like SQL adapters. Even though this works it doesn't take advantage of using a graph db. Replace the junction table for edges.

Also waiting on balderdashy/waterline#725 in order to better name many-to-many edges.

This is not a priority for now as this can be circumvented by using Many-to-many Through associations which do use edges.

dmarcelino added a commit that referenced this issue Feb 22, 2015
…ssociation by adding `joinTableNames` to the definition of the dominant side of the association. Example:

``` javascript
joinTableNames: {
  taxis: 'drives'
},
```
Relates to #29
@dmarcelino
Copy link
Member Author

Fixed by #46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant