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

Use delegation pattern in DgsDataFetchingEnvironment #978

Merged
merged 1 commit into from Apr 12, 2022

Conversation

kilink
Copy link
Member

@kilink kilink commented Apr 12, 2022

Some of the overridden methods such as getArguments were incorrectly returning mutable types, when the underlying DataFetchingEnvironment implementation was returning immutable types. Switching to the delegation pattern avoids this issue and gets rid of some boilerplate code.

Some of the overridden methods such as getArguments were incorrectly
returning mutable types, when the underlying DataFetchingEnvironment
implementation was returning immutable types. Switching to
the delegation pattern avoids this issue and gets rid of some
boilerplate code.
@kilink kilink force-pushed the dgs-data-fetching-environment-delegation branch from 9ffed27 to 1f334f1 Compare April 12, 2022 17:31
Copy link
Contributor

@berngp berngp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @kilink

@berngp berngp merged commit 6def6a0 into master Apr 12, 2022
@berngp berngp deleted the dgs-data-fetching-environment-delegation branch April 12, 2022 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants