-
Notifications
You must be signed in to change notification settings - Fork 194
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
entgql: fixed edge filter #344
Conversation
354ff32
to
67875f3
Compare
Co-authored-by: Amr Tamimi <amrnt0@gmail.com>
67875f3
to
c271c76
Compare
Co-authored-by: Amr Tamimi <amrnt0@gmail.com>
c271c76
to
a97f9a0
Compare
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.
Looking good 💯 🥇
@@ -640,6 +640,118 @@ func (s *todoTestSuite) TestPaginationFiltering() { | |||
}) | |||
} | |||
|
|||
func (s *todoTestSuite) TestEdgesFiltering() { |
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.
I think we can move this test case to the NestedPagination
/NestedConnection
one.
Also, in this test case, you don't really test the Query<E>
method, because the edges are resolved/loaded by the fields-collector (using eager-loading).
@amrnt, how do you use this API? Do you call these methods directly?
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.
OK, I see now. It's called childrenLevel1
and that's why it's not loaded.
I still want to give it a look before merging it.
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.
Looks good, but we need to address preload for aliases as well.
Is there any docs for edge filtering? |
Thanks @amrnt for reporting and provide the test cases, ❤️