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

Custom Edge Names #135

Open
rasjonell-zz opened this issue Feb 10, 2020 · 2 comments
Open

Custom Edge Names #135

rasjonell-zz opened this issue Feb 10, 2020 · 2 comments

Comments

@rasjonell-zz
Copy link

rasjonell-zz commented Feb 10, 2020

I already have a project that uses ArangoDB, I wanted to use Cruddl for a new feature. The Data Modeling doc states that:

In ArangoDB, relations are stored in an edge collection with the name orders_customer (the plural of the source object combined with the field name).

However I have a different approach designing my db regarding edge names and would be really nice to be able to give custom names to relationships. ie:

type Customer @rootEntity {
  name: String
  orders: [Order] @relation(edge: "has_ordered", inverse_edge: "was_ordered_by")
}

Also it was unclear whether it is possible to give custom attributes to edges besides _from and _to.

@itsezc
Copy link

itsezc commented Mar 7, 2020

I agree @Yogu this is definitely a feature that I would like to see

@mysticaltech
Copy link

Thank you for your wonderful work @Yogu, it seems obvious to me too that such a feature would be great to have. Customizability and flexibility are an overhead but always useful.

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

3 participants