Let clients request exactly the data they need instead of creating a separate endpoint for every response shape.
GraphQL provides an alternative to traditional REST APIs where clients describe the data they need through queries. Instead of the server deciding the exact response shape for every endpoint, the GraphQL schema defines what data can be requested.
NestJS supports GraphQL through decorators, resolvers, schemas, and providers. Understanding how these pieces connect helps you build APIs where clients can request related data efficiently while keeping the server's data model and business logic organized.
What you'll walk away knowing