Skip to content

Commit

Permalink
docs: update relation cli docs for inclusion resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnes Lin committed Oct 3, 2019
1 parent 15b29c8 commit 911fb07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/site/Relation-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ lb4 relation --sourceModel=<sourceModel>

- `<relationName>` - Name of the relation that will be created.

After setting up the definition for the relation, you need to confirm if you
want to register the inclusion resolver for this relation:

```ts
? Do you want to use inclusion for querying data over relation items? (Y/n)
```
Check the site [Relations](https://loopback.io/doc/en/lb4/Relations.html) and
the
[Querying Related Models](https://loopback.io/doc/en/lb4/HasMany-relation.html#querying-related-models)
section in each relation for more use cases.
### Interactive Prompts
The tool will prompt you for:
Expand Down

0 comments on commit 911fb07

Please sign in to comment.