-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Details
Note: this task depends on the completion of #6
Of course it wont be an object relational mapper if there are no relations. It needs to be possible to implement there.
I had given this some though and considered potential for the names, I think the annotation I cant suggest as I want to have a look around and think about what the most beautiful name might be...
I will come back to this one as it will take a lot of thought there are a lot of examples to draw from but I want to find a nice way that looks and acts in an enjoyable way, ie... its definitely not going to be hibernate but may look there for some inspiration.
Also I forgot that I had given thought to how the queries are connected and though that it could fit together easily like:
// Include some rel, this might be anything but key point is instead of run() there is a new joining term
Model.find('User').filter((user) => hasName).incl('Role').filter((role) => _isAdmin).run();