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 7, 2019
1 parent e41a6b7 commit 8ec8625
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
? Allow <sourceModel> queries to include data from related <destinationModel> instances? (Y/n)
```
Check the site [Relations](HasMany-relation.md) and the
[Querying Related Models](HasMany-relation.md#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 8ec8625

Please sign in to comment.