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

Thanks.. #14

Closed
stayhungryStayCalm opened this issue Mar 30, 2021 · 1 comment
Closed

Thanks.. #14

stayhungryStayCalm opened this issue Mar 30, 2021 · 1 comment

Comments

@stayhungryStayCalm
Copy link

Thanks for sharing the sample code here.. If you could correct the below method by adding the prefix TypeRuntimeWiring, it will help starters like me.

private RuntimeWiring buildWiring() {
return RuntimeWiring.newRuntimeWiring()
.type(TypeRuntimeWiring.newTypeWiring("Query")
.dataFetcher("bookById", graphQLDataFetchers.getBookByIdDataFetcher()))
.type(TypeRuntimeWiring.newTypeWiring("Book")
.dataFetcher("author", graphQLDataFetchers.getAuthorDataFetcher()))
.build();
}

@dondonz
Copy link
Member

dondonz commented Sep 29, 2023

Closing this issue as the tutorial has been rewritten with Spring for GraphQL, which automatically wires up datafetchers

@dondonz dondonz closed this as completed Sep 29, 2023
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

No branches or pull requests

3 participants
@dondonz @stayhungryStayCalm and others