cruddl icon indicating copy to clipboard operation
cruddl copied to clipboard

Custom Edge Names

Open rasjonell-zz opened this issue 5 years ago • 2 comments

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.

rasjonell-zz avatar Feb 10 '20 11:02 rasjonell-zz

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

itsezc avatar Mar 07 '20 18:03 itsezc

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.

mysticaltech avatar Apr 19 '20 02:04 mysticaltech