You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the API docs don't show the inheritance hierarchy, we need to document manually the properties and methods that each kind of model gets. Ideally, we could show all properties and methods available for a given object, included inherited ones, ala JavaDoc.
In addition to the methods of the Basic model object, the following are mixed in when a model is connected to a data source: RelationMixin class PersistedModel class
Besides above two classes, I noticed that Basic model object also gets static and instance methods of DataSource class.
Could you please verify it so that I can make changes in the docs?!
Activity
[-]Better describe model mixins[/-][+]Improve docs for model mixins[/+]teone commentedon Aug 5, 2015
As I had some trouble finding
mixindocumentation, here is an example (thanks to @clarkbw): https://github.com/clarkbw/loopback-mixins-examplefrom: #1349
crandmck commentedon Aug 5, 2015
Thanks. We just added http://docs.strongloop.com/display/LB/Defining+mixins, and I'll be working on adding more asap.
clarkbw commentedon Aug 7, 2015
I moved my example repo to https://github.com/strongloop/loopback-example-mixins /cc @teone
gunjpan commentedon Dec 10, 2015
@bajtos / @crandmck :In Connected model object docs
Besides above two classes, I noticed that
Basic modelobject also getsstaticandinstancemethods ofDataSourceclass.Could you please verify it so that I can make changes in the docs?!
gunjpan commentedon Dec 10, 2015
@crandmck : Please review the draft for Defining mixins
It's a copied page and restricted from Public.
Thank you.
crandmck commentedon Dec 12, 2015
I reviewed your draft and made a few small edits. It LGTM, so I copied it into https://docs.strongloop.com/display/LB/Defining+mixins and removed your hidden draft page.
Thanks!