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 2, 2019
1 parent 4b7a0bf commit 7d80293
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/site/Relation-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ 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 [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 7d80293

Please sign in to comment.