1. COURSE NAME: MERN STACK WEB
DEVELOPMENT(MSWD)
COURSE CODE: 22SDCS01R
TOPIC: GRAPHQL, APOLLOSERVER, APOLLO STUDIO EXPLORER,
PARAMETERS RESOLVER, MUTATIONS
1
2. GRAPHQL
GraphQL is a query language. It provides a query in the form of a string
thatis sent to a server. The server interprets the query and then returns the
result in the form of JSON format to the client.
2
3. ADVANTAGES OF GRAPHQL
• GraphQL is faster
• Best for complex systems and microservices
• No over-fetching and under-fetching problems
• Hierarchical Structure
• Defines a data shape
• Code-sharing
• Strongly typed
• Protocol, not a storage
3
15. PARAMETERS RESOLVER
A resolver is a function that's responsible for populating the data
for a single field in your schema. It can populate that data in any
way you define, such as by fetching data from a back-end
database or a third-party API.
15