Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit aec4ba3

Browse files
wz5899dekelev
andauthored
Added $leftJoinRelation (#182)
* Update index.js * Update index.js * Revert "Update index.js" This reverts commit 108df4f. * Revert "Update index.js" This reverts commit aed25fb. * Added $leftJoinRelation * Fixed a bug Fixed the issue in _find count when both $joinRelation and $leftJoinRelation are in the query. * Updated README file * Remove redundant if conditions * Added test * Delete .vscode directory * Fixed the failed test Fixed the two failed tests. * Fixed the new test that failed postgresql * Apply ESLint * Apply ESLint --------- Co-authored-by: Dekel Barzilay <[email protected]>
1 parent 3ca4fc3 commit aec4ba3

File tree

6 files changed

+228
-11061
lines changed

6 files changed

+228
-11061
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ db.sqlite
3232
data.db
3333
.idea
3434
.nyc_output
35+
.vscode/settings.json
3536

3637
# Tern
3738
.tern-port

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ Note that all this eager related options are optional.
180180
[`withGraphFetched`](https://vincit.github.io/objection.js/api/query-builder/eager-methods.html#withgraphfetched) documentation.
181181

182182
- **`$joinRelation`** - filter based on a relation's field. use with `$eager` to also fetch the relation. See
183-
[`joinRelated`](https://vincit.github.io/objection.js/api/query-builder/join-methods.html#joinrelated)
183+
[`joinRelated`](https://vincit.github.io/objection.js/api/query-builder/join-methods.html#joinrelated)
184+
documentation.
185+
186+
- **`$leftJoinRelation`** - filter based on a relation's field using LEFT JOIN. use with `$eager` to also fetch the relation. See
187+
[`leftJoinRelated`](https://vincit.github.io/objection.js/api/query-builder/join-methods.html#leftjoinrelated)
184188
documentation.
185189

186190
- **`$joinEager`** - filter based on a relation's field. See

0 commit comments

Comments
 (0)