Skip to content

Commit

Permalink
feature(joins:nested) version up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelyali committed Jan 25, 2019
1 parent 72dd210 commit 098d717
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 914 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- Composition of controller methods instead of inheritance (no tight coupling and less surprises)
- Overriding controller methods with ease.
- Request validation.
- Query parameters parsing with filters, pagination, sorting, etc.
- Query parameters parsing with filters, pagination, sorting, joins, nested joins, etc.
- Super fast DB query building.
- Additional handy decorators.

Expand Down Expand Up @@ -314,7 +314,7 @@ _Syntax:_
> ?join=**relation**||**field1**,**field2**,...
> ?join=**relation1**||**field11**,**field12**,...&join=**relation1**.**relation2**||**field21**,**field22**,...&join=...
> ?join=**relation1**||**field11**,**field12**,...&join=**relation1**.**nested**||**field21**,**field22**,...&join=...
_Examples:_

Expand All @@ -324,7 +324,7 @@ _Examples:_
> ?join=**profile**||**firstName**,**email**&join=**notifications**||**content**&join=**tasks**
> ?join=**relation1**&join=**relation1**.**relation2**&join=**relation1**.**relation2**.**relation3**
> ?join=**relation1**&join=**relation1**.**nested**&join=**relation1**.**nested**.**deepnested**
**_Notice:_** `id` field always persists in relational objects. To use nested relations, the parent level **MUST** be set before the child level like example above.

Expand Down
Loading

0 comments on commit 098d717

Please sign in to comment.