-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Documentation of loopback 4 Model is incorrect #2133
Comments
@opepermans, could you please elaborate which part of the documentation is incorrect? Thanks! |
In https://loopback.io/doc/en/lb4/Model.html#model-decorator there is a hyperlink to https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html which describes properties that are not valid in lb4. E.g. "options" (https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html#options) was used to set the database schema while it now should be: @model({
settings: {
postgresql: {
schema: 't1'
}
}
}) So I think the hyperlink to https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html should be removed and instead there should be an in depth explanation of the lb4 model-decorator properties. |
Thanks @opepermans. I agree some part of https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html not applicable to LB4. In fact, the |
We need to groom this to determine if we want an lb4 version of the https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html . |
Instead of finding which content in https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html we can reuse in LB4, I think we can think the other way round to beef up the docs for Model Decorator and Property Decorator, and see if there's anything applicable in the LB3 docs we can reuse so that we don't need to write it from scratch.
|
Based on the discussion in this thread, I've compiled the following criteria for this issue. Acceptance Criteria
|
Description/Steps to reproduce
Link to reproduction sandbox
Expected result
Additional information
The text was updated successfully, but these errors were encountered: