-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add withAll()
and withAllRecursive()
to Query Builder
#94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M3psipax Thank you so much for the PR! Looking good.
Can we have the test case as a separate file? Maybe named like test/feature/relations/recursive/recursive.spec.ts
?
Hey @kiaking I reverted the changes to If you run the test, you'll see that one is failing at: https://github.com/M3psipax/vuex-orm-next/blob/97e6ee8af47dfbb25e53127fa6d4ef43cbb3a297/test/feature/relations/eager_loads/eager_loads.spec.ts#L67 When loading only top level relations, I would expect all further relations to be filled with |
Okay, I adjusted the test to allow |
Co-Authored-By: M3psipax <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #94 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 38 +2
Lines 1122 1175 +53
Branches 164 172 +8
=========================================
+ Hits 1122 1175 +53
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kiaking I'll add documentation for these in a separate PR 👍
Hey, thanks for merging. When is the next release planned? |
As soon as the docs for this feature is ready, we can release a new version 👍 👀 @cuebit 😃 |
Type of PR:
Breaking changes:
Details
Adds
withAll()
andwithAllRecursive()
utility methods to fetch all relationships on a model.Still needs a lot more unit tests though.