Skip to content

Commit 3b3c7e2

Browse files
committed
update README.md
1 parent 90a3e45 commit 3b3c7e2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ _Syntax:_
314314
315315
> ?join=**relation**||**field1**,**field2**,...
316316
317+
> ?join=**relation1**||**field11**,**field12**,...&join=**relation1**.**relation2**||**field21**,**field22**,...&join=...
318+
317319
_Examples:_
318320

319321
> ?join=**profile**
@@ -322,7 +324,9 @@ _Examples:_
322324
323325
> ?join=**profile**||**firstName**,**email**&join=**notifications**||**content**&join=**tasks**
324326
325-
**_Notice:_** `id` field always persists in relational objects.
327+
> ?join=**relation1**&join=**relation1**.**relation2**&join=**relation1**.**relation2**.**relation3**
328+
329+
**_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.
326330

327331
_Alias:_ `join[]`
328332

@@ -476,7 +480,8 @@ An Object of [relations](http://typeorm.io/#/relations) that allowed to be fetch
476480
notifications: {
477481
exclude: ['token']
478482
},
479-
company: {}
483+
company: {},
484+
'company.projects': {}
480485
}
481486
}
482487
```

0 commit comments

Comments
 (0)