Closed amitsuryavanshi closed 5 years ago
Merging #1546 into master will decrease coverage by
0.17%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #1546 +/- ##
==========================================
- Coverage 93.4% 93.22% -0.18%
==========================================
Files 104 105 +1
Lines 4809 4756 -53
==========================================
- Hits 4492 4434 -58
- Misses 317 322 +5
Impacted Files | Coverage Δ | |
---|---|---|
...o4j/active_node/query/query_proxy_eager_loading.rb | 100% <100%> (ø) |
:arrow_up: |
lib/neo4j/active_node/has_n.rb | 99.18% <100%> (+0.77%) |
:arrow_up: |
...uery/query_proxy_eager_loading/association_tree.rb | 100% <100%> (ø) |
|
lib/neo4j.rb | 97.95% <100%> (+0.02%) |
:arrow_up: |
lib/neo4j/session_manager.rb | 86.66% <0%> (-8.99%) |
:arrow_down: |
lib/neo4j/active_node/id_property.rb | 93.13% <0%> (-4.91%) |
:arrow_down: |
lib/neo4j/migrations/helpers/id_property.rb | 83.33% <0%> (-4.77%) |
:arrow_down: |
lib/neo4j/active_rel/types.rb | 97.14% <0%> (-2.86%) |
:arrow_down: |
lib/neo4j/shared/query_factory.rb | 96.49% <0%> (-1.79%) |
:arrow_down: |
lib/neo4j/shared/declared_property.rb | 93.75% <0%> (-1.57%) |
:arrow_down: |
... and 34 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update e7ffdf6...afdde76. Read the comment docs.
Fixes #1545
This pull introduces/changes:
*
to eager load relationships with variable length like:person.blog_posts.with_associations('comments.owner.friends*')
Here all thefriends
relationships, any level deep will be eager loaded.*<length>
like:person.blog_posts.with_associations('comments.owner.friends*2')
This will eager loadfriends
relationship till 2 levels deep.