SlideShare a Scribd company logo
Introduction to GraphQL
Course: Internet Programming Term: Spring-2017 By: Sangeeta Ashrit
Agenda
• Introduction toGraphQL
• History of GraphQL
• Queries & Mutations
• Schemas & Types
• Validations & Executions
• Compared toREST
• Demo Examples
• Q&A
• Facebook use to have web
framework for mobile apps.
History of GraphQL
Facebook Current Native App :
Today, Facebook gets more than260 billion requests/day
What isGraphQL?
What is GraphQL ?
• GraphQL is a query language
• Specification for a server to execute queries
What Graph is NOT !
• Its not a database
• Not a library
• Not a storage engine
• Not language specific
How GraphQL works?
iOS App
Android App
Web App
Desktop App
GraphQL
Server
Data
Data
GraphQL
Queries
JSON
Payload
1
2
GraphQL Query Example
Schemas & Types
• Type System
• Type Language
• Enumerations, Lists, Interface creation
• Aliases
• Fragments
Schemas & Types Explanation
Type System:
Schemas & Types Explanation
Aliases:
Schemas & Types Explanation
Fragments:
Schemas & Types Explanation
Fragments:
Grace
Validations
1.Minimal code changes to adapt
Other Benefits of GraphQL
Other Benefits of GraphQL
2.No need to maintain versioning informations
Other Benefits of GraphQL
REST Vs GraphQL
• Shopify claims : As application grows larger, REST architecture often becomes
unmanageable
• Using REST, over fetching/under fetching of data becomes part of the application
development.
• Handling custom endpoints, multiple end points can be time consuming/costly
effort.
Custom
Endpoint 1
Custom
Endpoint2
2
Custom
Endpoint 3
Custom
Endpoint 4
Custom
Endpoint 5
Custom
Endpoint 6
View 1 View 2 View 3 View 4 View 5 View 6
REST: Custom End Points
Introduction to GraphQL
GraphQL:
GraphQL
View 1 View 2 View ‘n’
Advantages
• What you see is what you get
• Client specificdata
• Application layerprotocol
• Strong typed
• Self documenting
• Existing backendAPIs
• RFC - http://facebook.github.io/graphql
• Extra powers with Relay and React
• Introspection
• Active community
Disadvantages
• No select *
• Args can become enormous
• Boilerplate
Who’s Using GraphQL:
References:
• http://graphql.org/graphql-js/
• https://facebook.github.io/graphql/
• http://graphql.org/graphql-js/running-an-express-graphql-server/
• https://www.youtube.com/watch?v=WQLzZf34FJ8
Thank you!
Questions?
Sangeeta Ashrit
City College of New York
sangeeta2288

More Related Content

PPT
Graphql presentation
PPTX
An intro to GraphQL
PDF
REST vs GraphQL
PDF
Intro to GraphQL
PPTX
Introduction to GraphQL
PPTX
Introduction to GraphQL
PDF
Graphql
PDF
React & GraphQL
Graphql presentation
An intro to GraphQL
REST vs GraphQL
Intro to GraphQL
Introduction to GraphQL
Introduction to GraphQL
Graphql
React & GraphQL

What's hot (20)

PDF
GraphQL: Enabling a new generation of API developer tools
PDF
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
PPTX
Introduction to graphQL
PDF
GraphQL Fundamentals
PDF
GraphQL
PDF
How to GraphQL
PDF
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
PDF
How to GraphQL: React Apollo
PPTX
Intro GraphQL
PDF
GraphQL vs REST
PDF
Better APIs with GraphQL
PDF
PPTX
GraphQL Introduction
PDF
Introduction to GraphQL
PDF
Spring GraphQL
PDF
The Apollo and GraphQL Stack
PPTX
GraphQL API Gateway and microservices
PPT
PPTX
Introduction to GraphQL Presentation.pptx
PDF
GraphQL Advanced
GraphQL: Enabling a new generation of API developer tools
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
Introduction to graphQL
GraphQL Fundamentals
GraphQL
How to GraphQL
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
How to GraphQL: React Apollo
Intro GraphQL
GraphQL vs REST
Better APIs with GraphQL
GraphQL Introduction
Introduction to GraphQL
Spring GraphQL
The Apollo and GraphQL Stack
GraphQL API Gateway and microservices
Introduction to GraphQL Presentation.pptx
GraphQL Advanced
Ad

Similar to Introduction to GraphQL (20)

PDF
PPTX
Testing Graph QL Presentation (Test Automation)
PPTX
Introduction to Testing GraphQL Presentation
PDF
Getting started with GraphQL
PPTX
Into to GraphQL
PPTX
GraphQL Introduction with Spring Boot
PPTX
GraphQL - Missing Link In REST
PDF
GraphQL - A love story
PDF
GraphQL IndyJS April 2016
PPTX
CONDG April 23 2020 - Baskar Rao - GraphQL
PDF
Introduction to GraphQL
PDF
GraphQL and Relay Modern
PDF
GraphQL And Relay Modern
PDF
GraphQL And Relay Modern
PDF
GraphQL with .NET Core Microservices.pdf
PDF
Modern APIs with GraphQL
PDF
Introduction to GraphQL for beginners
PDF
Let's start GraphQL: structure, behavior, and architecture
PPTX
Introduction to Graph QL
PPTX
Green Custard Friday Talk 8: GraphQL
Testing Graph QL Presentation (Test Automation)
Introduction to Testing GraphQL Presentation
Getting started with GraphQL
Into to GraphQL
GraphQL Introduction with Spring Boot
GraphQL - Missing Link In REST
GraphQL - A love story
GraphQL IndyJS April 2016
CONDG April 23 2020 - Baskar Rao - GraphQL
Introduction to GraphQL
GraphQL and Relay Modern
GraphQL And Relay Modern
GraphQL And Relay Modern
GraphQL with .NET Core Microservices.pdf
Modern APIs with GraphQL
Introduction to GraphQL for beginners
Let's start GraphQL: structure, behavior, and architecture
Introduction to Graph QL
Green Custard Friday Talk 8: GraphQL
Ad

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Transform Your Business with a Software ERP System
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
history of c programming in notes for students .pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPT
Introduction Database Management System for Course Database
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
medical staffing services at VALiNTRY
PPTX
Online Work Permit System for Fast Permit Processing
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Wondershare Filmora 15 Crack With Activation Key [2025
PTS Company Brochure 2025 (1).pdf.......
Transform Your Business with a Software ERP System
Operating system designcfffgfgggggggvggggggggg
history of c programming in notes for students .pptx
How to Choose the Right IT Partner for Your Business in Malaysia
2025 Textile ERP Trends: SAP, Odoo & Oracle
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Navsoft: AI-Powered Business Solutions & Custom Software Development
Introduction Database Management System for Course Database
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
ISO 45001 Occupational Health and Safety Management System
medical staffing services at VALiNTRY
Online Work Permit System for Fast Permit Processing

Introduction to GraphQL