-
Notifications
You must be signed in to change notification settings - Fork 4
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
@Model #13
Comments
ES6 Symbols, Reflect, and Proxy are likely the way to move forward with implementing these features: |
Default CRUD Method InjectionWhat methods should be automatically injected with default behavior unless implemented by the user directly, or suppressed with the @model({suppressInjection: []}) property? Static
Instance
|
…r default CRUD methods, moved instance CRUD methods to prototype, added support for suppressInjection option
|
|
merged to develop |
Todo:
@Model
[ ] Implement(moved todbConfig
forModelOption
@Model
DB Related Directives #21)suppressInjection
forModelOption
@Model
and@Routable
for default API #6?toJson
instance method;toJsonString
instance method;fromJson
static method;fromJsonArray
static method;[ ] inject(moved tofromDb
static method;@Model
DB Related Directives #21)@Json
@Default
(moved to@Required
@Model
DB Related Directives #21)(moved to@Db
@Model
DB Related Directives #21)@Private
(moved to@Validate
@Model
DB Related Directives #21)@Route
into a separate file from@Routable
@Route
from@Routable
testsProposal
A set of route handlers are setup with an @Routable class:
This class is instantiated by the @Routable decorator and added to the Express router through a call to
SakuraApi.instance.route(this);
.Because there's a single instance of this class responsible for route handlers, it's not an appropriate place to represent a model (i.e., there's only one of these @Routable objects handling routes, but each request will be handling different objects that are relevant to various models).
Possible Solution?:
Then, from within the @Routable class @route method:
The text was updated successfully, but these errors were encountered: