Skip to content

Migrate QuerydslDataFetcher to use fluent Querydsl API #168

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

Closed
wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Oct 22, 2021

Remove supporting classes for external projection as projections are handled by Spring Data directly.

Limit field projection according to field selection.

Closes gh-87

Remove supporting classes for external projection as projections are handled by Spring Data directly.
We now request only property paths from the repository query
that are requested through a GraphQL query if the result type
is not a projection. That reduces the amount of data being
retrieved from the underlying data store.
@mp911de
Copy link
Member Author

mp911de commented Oct 22, 2021

I haven't found an easy way to test PropertySelection as DataFetchingFieldSelectionSet implementations are GraphQL internal.

@rstoyanchev rstoyanchev self-assigned this Oct 27, 2021
@rstoyanchev rstoyanchev added in: data Issues related to working with data type: enhancement A general enhancement labels Oct 27, 2021
@rstoyanchev rstoyanchev added this to the 1.0.0-M3 milestone Oct 27, 2021
rstoyanchev pushed a commit that referenced this pull request Oct 27, 2021
Remove supporting classes for external projection as projections are
handled by Spring Data directly.

See gh-168
rstoyanchev pushed a commit that referenced this pull request Oct 27, 2021
We now request only property paths from the repository query
that are requested through a GraphQL query if the result type
is not a projection. That reduces the amount of data being
retrieved from the underlying data store.

See gh-168
@bclozel
Copy link
Member

bclozel commented Oct 27, 2021

Reopening as this broke the build.

@bclozel bclozel reopened this Oct 27, 2021
@bclozel
Copy link
Member

bclozel commented Oct 27, 2021

My bad - initially I could consistently reproduce the issue and now everything works, CI is green.

@bclozel bclozel closed this Oct 27, 2021
@mp911de mp911de deleted the fluent-querydsl-api branch October 28, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues related to working with data type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QuerydslDataFetcher to specify which properties and associations to fetch
3 participants