
Understand why GraphQL addresses rest API overhead with a declarative, strongly typed schema. Clients specify exactly what they need, enabling single requests for posts, comments, and authors.
Set up a Spring Boot GraphQL project using a schema-first approach, configure Gradle dependencies, enable annotation processing, and prepare for testing with an in-memory database and Lombok.
Define a GraphQL schema with types and queries using GraphQL Java tools, implement a hello world resolver, and run queries in a Spring Boot playground to test results.
Learn to build a parametrized GraphQL query with Java Spring Boot, defining named arguments like first name and an optional second name, and implement a resolver returning a greeting string.
Build and return a complex object from a GraphQL query by defining methods that return a message object with multiple fields, then selecting subfields and running the application.
Master GraphQL with Java Spring Boot by examining how to return an array from a GraphQL query, including handling empty and no return scenarios in a sample function.
Explore field resolvers and schema linking in GraphQL by building a complex author–post schema, mapping one-to-many and many-to-one relations, and implementing resolvers to fetch related posts.
Create a post and author JPA models, map a one-to-many relationship with a join column, and integrate with the database while validating data via resolvers and initial scripts.
Connect author and post services using GraphQL resolvers in a Spring Boot app, wiring repositories and a service layer to fetch, map, and return posts and authors from the database.
Resolve the post id null issue in a GraphQL API built with Java Spring Boot, verify data retrieval from the in-memory database, and ensure correct response mapping.
Implement a post pagination query in GraphQL with count and offset arguments, wire a resolver, and return a list of post records, using fake data before database integration.
Connect to the database by implementing a postal service function with pagination offset and limit to fetch posts, and verify the GraphQL schema and browser request.
Define a create author GraphQL mutation using an input type with name and email, implement a resolver, and test the mutation to return the created author.
Save the newly created author to the database, implement the save function, create the author model, and verify the integration of the author service with the resolver.
Learn to create a post mutation and its GraphQL resolver in a Spring Boot app, register the resolver as a component, and test the mutation in the GraphQL playground.
Create a post, fetch the author entity, and save the post to the database, then verify the post appears in the application.
Refactor the GraphQL schema and resolver packages by creating dedicated files for post, author, comment, and message, and separating queries and mutations for a cleaner GraphQL structure.
Develop a GraphQL integration test for the author query in a Java Spring Boot project using GraphQL SDL, building and validating request and response files.
Explore post query integration testing in a GraphQL setup with Java Spring Boot, including creating requests, annotating classes, and wiring web environments to validate responses across databases.
Create a GraphQL author mutation integration test in Spring Boot by sending name and email, and verify the created author data by executing the test.
Create post mutation integration test for a Spring Boot GraphQL setup by wiring the PostMutationResolver, crafting complete mutation requests, and validating the response containing the newly created post.
Demonstrate how field resolvers work in GraphQL by showing how an author field resolves related posts by querying the database or using resolver functions, including nested resources and post counts.
Learn to fetch post counts by author from the database in real time by implementing the service to query and return data through the application.
Learn how to write integration tests for the PostCount resolver in a Java Spring Boot GraphQL API, including building requests, selecting fields, and validating responses.
Explore implementing a parameterized field resolver for the comment type in GraphQL, connecting the author with their comments via a supplied integer argument and returning a list of comments.
Model a comment entity with a one-to-many relationship to authority, implement a repository and service to fetch comments by authority, and test GraphQL queries against the database.
Explore mapping between posts and comments, establishing a one-to-many relationship, defining resolved fields, and testing queries to verify post comments.
Define a post–comment one-to-many relationship, implement a service method to fetch all comments by post, and verify GraphQL resolver integration in a Spring Boot app.
Learn to implement a paginated comments query in GraphQL with Java Spring Boot, defining a comments resolver, handling count and offset, and wiring repository calls to fetch and map results.
Discover how to link comments to a post with a GraphQL field resolver in a Java Spring Boot app, wiring repositories and services to fetch and expose post comments.
Define the relation between comments and authors in a GraphQL schema, rename the function to guest post, implement the resolver, and verify the linked three types via repository and playground.
Explore how GraphQL subscriptions enable real-time post updates via a post publisher and reactive data streams, delivering new posts to subscribers through a WebSocket-based live query.
Create subscriptions that listen for posts created by a specific author and return only that author’s new post data. Test in playgrounds by filtering by author to observe real-time updates.
Create a comment mutation in GraphQL using a Spring Boot backend, wiring input types and repositories to persist comments and trigger subscriptions on new comments.
Develop a live query subscription in GraphQL with Java Spring Boot to listen for new comments on a specific post, returning the comment data in real time.
Demonstrate implementing and running GraphQL subscriptions for trading post and post, observe data flow in a practical demo, and envision powerful applications enabled by this communication.
Learn to implement the GraphQlError interface in Java Spring Boot, override the GraphQL error handler, and expose a safe, client-friendly error response by separating data and error fields.
Implement a custom GraphQL error handler in Spring Boot, process errors, map them to user-friendly messages, and customize the returned error data.
Refactor the codebase to standardize error handling, throwing resource not found when entities are missing. Consolidate mappers to centralize post data mapping across services for future improvements.
Refactor by extracting inline mappings into dedicated mappers and convert functions, translating entities to view models for comments, posts, authors, and videos, with injected mappers for clarity.
Are you someone who want to learn GraphQL with spring boot java and how to test GraphQl application then you are in right place :).
This course enables you as a GraphQL engineer who can explain graphQL in simple words to anyone.
Throughout the course, we will practice a lot writing graphql schema and we will understand how the graphQL ecosystem works with spring boot.
You will learn what is GraphQl and how to set up the graphQL project with spring boot.
What is GraphQL?
A query language for your API
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
Ask for what you need,
get exactly that
Send a GraphQL query to your API and get exactly what you need, nothing more and nothing less. GraphQL queries always return predictable results. Apps using GraphQL are fast and stable because they control the data they get, not the server.
In this course, you will learn:-
What is GraphQL?
Difference between GraphQL and REST API
What is Query in GraphQL?
What is Mutation in GraphQL?
What is Schema in GraphQL?
What is QueryResolver in GraphQL?
What is MutationResolver in GraphQL?
What is FieldResolver in GraphQL?
How to Integrate GraphQL application with database using Spring Data JPA.
How to write an integration test for graphQL.
How to maintain graphQL schema.
What is Voyager in graphQL?
What is Subscription in graphQL? - Real time communication
How to handle Exception in graphQL
How to create custom scalar type in graphQL
How to perform input validation in graphQl
How to transform field value with @Directive
How to solve N+1 query problem in graphql