cruddl
cruddl copied to clipboard
Custom Edge Names
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.
I agree @Yogu this is definitely a feature that I would like to see
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.