Skip to content
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

Docs for RelationDefinition #3340

Closed
anodynos opened this issue Apr 6, 2017 · 0 comments
Closed

Docs for RelationDefinition #3340

anodynos opened this issue Apr 6, 2017 · 0 comments
Labels

Comments

@anodynos
Copy link

anodynos commented Apr 6, 2017

It's not a bug or a feature request, but a docs request + question:

With regards to app.models.Person.relations with seems to be holding a RelationDefinition instance for each relation name, I am trying to use it for run-time introspection (like its used in many other components or mixins such as this loopback-cascade-delete-mixin but unfortunately I can't find any documentation/reference about it :-/

One would expect relations it to be under https://apidocs.strongloop.com/loopback/#model but it lists only instance methods, not instance members. I've also tried https://github.com/strongloop/loopback-datasource-juggler/blob/master/docs/ but there isn't anything there also.

The question is, are the docs deliberately missing (because developers & component/mixin creators) are not supposed to use it for introspection, or is it just missing because WIP?

Any help is appreciated.
Regards

@stale stale bot added the stale label Aug 23, 2017
@stale stale bot closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant