Skip to content
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

Support Spring Data projections as @SchemaMapping method return values #657

Open
rstoyanchev opened this issue Mar 30, 2023 · 0 comments
Open
Labels
type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Mar 30, 2023

QueruydslDataFetcher and QueryByExampleDataFetcher already support use of projection interfaces to customize return values. The same is useful in controller methods too to allow loose coupling between schema types and domain entities, see for example discussion in #636.

An @ProjectAs annotation on the controller method could be used to specify the projection interface type to apply to the return value.

@rstoyanchev rstoyanchev added the type: enhancement A general enhancement label Mar 30, 2023
@rstoyanchev rstoyanchev added this to the 1.2.0-RC1 milestone Mar 30, 2023
@rstoyanchev rstoyanchev self-assigned this Mar 30, 2023
@rstoyanchev rstoyanchev modified the milestones: 1.2.0-RC1, 1.2 Backlog, 1.x Backlog Apr 14, 2023
@rstoyanchev rstoyanchev modified the milestones: 1.x Backlog, 1.3 Backlog May 15, 2023
@rstoyanchev rstoyanchev removed their assignment Mar 8, 2024
@rstoyanchev rstoyanchev modified the milestones: 1.3 Backlog, 1.x Backlog Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant