Commit 399bb93
committed
feat(EagerLoading): Give entities a way to automatically eager load certain relationships
Using the `variables._with` property on an entity, you can specify
relationships to always eager load. Be careful with this as it is
easy to over fetch data this way.1 parent 5939192 commit 399bb93
File tree
4 files changed
+34
-5
lines changed- models
- Relationships
- tests
- resources/app/models
- specs/integration/BaseEntity/Relationships
4 files changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
245 | 251 | | |
246 | 252 | | |
247 | 253 | | |
248 | | - | |
| 254 | + | |
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
| |||
1024 | 1030 | | |
1025 | 1031 | | |
1026 | 1032 | | |
1027 | | - | |
1028 | 1033 | | |
1029 | 1034 | | |
1030 | 1035 | | |
| |||
2104 | 2109 | | |
2105 | 2110 | | |
2106 | 2111 | | |
2107 | | - | |
| 2112 | + | |
2108 | 2113 | | |
2109 | 2114 | | |
2110 | 2115 | | |
| |||
2241 | 2246 | | |
2242 | 2247 | | |
2243 | 2248 | | |
2244 | | - | |
| 2249 | + | |
| 2250 | + | |
2245 | 2251 | | |
2246 | 2252 | | |
2247 | 2253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
593 | 612 | | |
594 | 613 | | |
595 | 614 | | |
| |||
0 commit comments