vlcn-orm icon indicating copy to clipboard operation
vlcn-orm copied to clipboard

Abstract and simplify edge definition?

Open tantaman opened this issue 2 years ago • 1 comments

Should we allow defining edges without defining id fields??

Foo as Node {
  blahId: ID<Blah>
} & OutboundEdges {
  blah: Edge<Foo.blahId>
}

to:

Foo as Node {
} & Edges {
  blah: OneToOne<Blah>
}

but this removes control from the developer and feels a bit opaque.

tantaman avatar Aug 19 '22 20:08 tantaman

maybe we can get some ideas from entgo.io

tantaman avatar Aug 19 '22 20:08 tantaman