/spring-graphql

A sample of using GraphQL in a reactive Spring boot based app

Primary LanguageJava

Spring GraphQL

spring-graphql

This repository contains a project demonstrating the usage of GraphQL with Spring Boot. GraphQL is a query language for APIs and a runtime for executing those queries. It provides a more efficient and powerful alternative to REST APIs by allowing clients to request only the data they need.

Features

  • Integration of GraphQL with Spring Boot
  • Demonstrates how to define GraphQL schema, queries, mutations, and subscriptions
  • Provides examples of GraphQL queries and mutations
  • Includes configurations for running the Spring Boot application
  • Utilizes dependencies such as Spring Data MongoDB for data storage

Associated Article

This project is accompanied by an article that provides additional insights and explanations. You can find the article here.

Dependencies

  • Spring Boot
  • GraphQL Java
  • Spring Data MongoDB
  • Maven

Usage

This project serves as a reference for implementing GraphQL in Spring Boot applications. Developers can explore the codebase to understand how to integrate GraphQL, define schemas, create queries, mutations, and subscriptions, and interact with a MongoDB database using Spring Data MongoDB.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.