Skip to content

Improve docs for model mixins #750

Closed

Description

@crandmck

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.

We currently have these:

But these are scattered and need to be consolidated coherently.

NOTE: Moved from https://github.com/strongloop-internal/scrum-loopback/issues/37

Activity

  1. changed the title [-]Better describe model mixins[/-] [+]Improve docs for model mixins[/+] on Nov 6, 2014
  2. teone commented on Aug 5, 2015

    @teone

    As I had some trouble finding mixin documentation, here is an example (thanks to @clarkbw): https://github.com/clarkbw/loopback-mixins-example

    from: #1349

  3. crandmck commented on Aug 5, 2015

    @crandmck
    ContributorAuthor

    Thanks. We just added http://docs.strongloop.com/display/LB/Defining+mixins, and I'll be working on adding more asap.

  4. clarkbw commented on Aug 7, 2015

    @clarkbw
  5. gunjpan commented on Dec 10, 2015

    @gunjpan
    Contributor

    @bajtos / @crandmck :In Connected model object docs

    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?!

  6. gunjpan commented on Dec 10, 2015

    @gunjpan
    Contributor

    @crandmck : Please review the draft for Defining mixins
    It's a copied page and restricted from Public.
    Thank you.

  7. crandmck commented on Dec 12, 2015

    @crandmck
    ContributorAuthor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions