Skip to content

moves the info if a DF is trivial out of the DF itself into a marker#1309

Merged
andimarek merged 1 commit into
masterfrom
trivial-df-interface
Nov 12, 2018
Merged

moves the info if a DF is trivial out of the DF itself into a marker#1309
andimarek merged 1 commit into
masterfrom
trivial-df-interface

Conversation

@andimarek

Copy link
Copy Markdown
Member

@bbakerman this is an alternative to #1300: What do u think?

My main motivation was to keep the info out of the DF interface itself: being the most important Interface we have I think our goal should be to keep it as simple as possible.

The trivial info is not needed in a lot of cased and will distract/confuse especially beginners who look at GraphQL Java the first time more than it helps. IMHO

@andimarek andimarek requested a review from bbakerman November 7, 2018 19:28
*/
@PublicApi
public class PropertyDataFetcher<T> implements DataFetcher<T> {
public class PropertyDataFetcher<T> implements DataFetcher<T>, TrivialDataFetcher<T> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can be simply be

 public class PropertyDataFetcher<T> implements TrivialDataFetcher<T> 

@andimarek andimarek merged commit 6ddb87f into master Nov 12, 2018
@andimarek andimarek added this to the 12.0 milestone Nov 12, 2018
@andimarek andimarek added the breaking change requires a new major version to be relased label Nov 12, 2018
@andimarek andimarek deleted the trivial-df-interface branch November 25, 2018 23:02
@andimarek andimarek removed the breaking change requires a new major version to be relased label Dec 11, 2018
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.

2 participants