GraphQL is a query language and runtime for APIs that enables clients to request only the data they need. It differs from traditional REST APIs in several key ways.
- Types: Defines the structure of data.
- Queries: Retrieves data from the server.
- Mutations: Alters data on the server.
- Subscriptions: Listens for real-time data changes.
- Functions that resolve data for different parts of the GraphQL schema.
- Resolver is Provide the Data, and that Data is Co-related the The Schema or Type that we're created.
- Query: Fetches data from the server.
- Mutation: Modifies data on the server.
- An interactive tool for testing and debugging GraphQL APIs.
- I used the
@apollo/server
,graphql
- where
apollo/server
basically used to run the server