Application live at https://arthur-0896.github.io/GraphQLWithSpring/
- A simple GraphQL ordering app created with Spring Boot by following LinkedIn tutorial 'Spring with GraphQL' by Frank P Moley III.
- Tutorial Link: Spring with GraphQL by Frank P Moley III
GraphQL is an open‑source query language for APIs and a server‑side runtime. It provides a strongly‑typed schema to define relationships between data, making APIs more flexible and predictable. And it isn’t tied to a specific database or storage engine — it works with your existing code and data, making it easier to evolve APIs over time.
- Fetch exactly what you need — nothing more, nothing less
- Clients can specify the exact fields they want.
- This avoids over-fetching (getting too much data) and under-fetching (needing multiple requests to get related data).
- Single endpoint
- Unlike REST (which often has many endpoints like /users, /users/:id/orders, etc.), GraphQL typically uses one endpoint for all queries and mutations.
- Strongly typed schema
- The schema acts as a contract between client and server, making APIs self-documenting and easier to validate and evolve safely.
- Faster development and iteration
- Frontend developers can modify queries without needing backend changes, as long as the data exists in the schema.
And Much more...