GraphQL.net
Tyler Ayers
tyler.ayers@gmail.com
REST
client
flow
GraphQL
client
flow
Why GraphQL?
• REST and SOAP often provide APIs from the server perspective, not optimized for
data and flows from user interfaces
• Apps have to usually make multiple expensive REST calls and do data juggling
to get the data in the for that they need
• Facebook noticed this in their mobile app development around 2012, released
the project as an open source project in 2015
• No over or under-fetching of data, client always gets exactly what they asked
for
• Do everything the client needs in one call, always
• https://www.graphql.org is only a schema definition from Facebook, along with a
reference implementation for nodejs/react
• Open source implementations on GitHub for Python, Go, .NET Core, Scala, etc…
GraphQLAPI
Gateway
Why GraphQL instead of OData?
• GraphQL is a different approach than OData – OData grew out of the SQL Server
team at Microsoft, basically making the database queryable/editably from web
clients
• It doesn’t however solve the problem of overly complex request flows to get
user interface optimized data
• …and may make the situation worse since you are married to the data model
• Also can offer too much power to clients – they can discover and manipulate
the database and data directly, which is usually not a good idea - only
makes sense in trusted environments
• GraphQL offers more flexibility and simplicity on the client side, probably a
big win for client productivity and speed
Why OData instead of GraphQL?
• GraphQL requires a new approach to define and implement GraphQL APIs, with
little built-in support in .NET environments
• Odata has built in support in several key Microsoft technology stacks, could
make it faster to offer internal APIs to clients
Why maybe not GraphQL?
• It is a new API format – be prepared to learn a new schema format, basically
replaces Open API definitions with new GraphQL Schemas, and do completely new
implementations for services (very different code than a typical ASP.NET Core
REST API controller)
• .NET GraphQL open source projects are functional, but still relatively young
and maybe not production-ready
• Doesn’t conform to REST principles that built the web – uses POST for
everything
How’s GraphQL.net?
• Good! Works great with ASP.net Core, translation from strongly-typed DTOs in
.NET Core to dynamic JSON response payloads works like a charm
• https://graphql-dotnet.github.io/
• ORM / DB integrations lacking, maybe should also be avoided, best if used as an
API gateway which integrates with backend services
Demo
Who’s publicly using GraphQL?
• GitHub
• Twitter
• The New York Times
• Yelp
• ...
• Your neighbor’s dog?
Do some homework..
• Do the intro exercises, they are fast and fun, and do an excellent job of
explaining the intention, platform, and concrete implementation steps
• https://www.howtographql.com/
Takeaway:
Always offer an API Gateway to clients – either
GraphQL, REST, or both. Don’t make clients
integrate directly with backend services or
databases.

More Related Content

PDF
GraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
PDF
GraphQL Europe Recap
PDF
How to GraphQL
PDF
REST vs GraphQL
PDF
Graphql
PDF
Adding GraphQL to your existing architecture
PPTX
Introduction to graphQL
GraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
GraphQL Europe Recap
How to GraphQL
REST vs GraphQL
Graphql
Adding GraphQL to your existing architecture
Introduction to graphQL

What's hot (20)

PDF
GraphQL
PDF
GraphQL London January 2018: Graphql tooling
PDF
GraphQL across the stack: How everything fits together
PPTX
An intro to GraphQL
PPTX
Into to GraphQL
PDF
GraphQL Fundamentals
PDF
Real-time GraphQL API with minimum coding and maximum benefit
PDF
The Apollo and GraphQL Stack
PPTX
React Flux to GraphQL
PDF
GraphQL: The Missing Link Between Frontend and Backend Devs
PPTX
Introduction to GraphQL
PDF
Modular GraphQL with Schema Stitching
PDF
GraphQL: Enabling a new generation of API developer tools
PPTX
Taking Control of your Data with GraphQL
PDF
GraphQL Advanced
PPT
Graphql presentation
PDF
PDF
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
PDF
How to GraphQL: React Apollo
PPTX
Create GraphQL server with apolloJS
GraphQL
GraphQL London January 2018: Graphql tooling
GraphQL across the stack: How everything fits together
An intro to GraphQL
Into to GraphQL
GraphQL Fundamentals
Real-time GraphQL API with minimum coding and maximum benefit
The Apollo and GraphQL Stack
React Flux to GraphQL
GraphQL: The Missing Link Between Frontend and Backend Devs
Introduction to GraphQL
Modular GraphQL with Schema Stitching
GraphQL: Enabling a new generation of API developer tools
Taking Control of your Data with GraphQL
GraphQL Advanced
Graphql presentation
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
How to GraphQL: React Apollo
Create GraphQL server with apolloJS
Ad

Similar to GraphQL.net (20)

PPTX
GraphQL research summary
PDF
GraphQL is actually rest
PDF
GraphQL - A love story
PDF
Andrea Baldon, Emanuele Di Saverio - GraphQL for Native Apps: the MyAXA case ...
PDF
All you need to know about GraphQL.pdf
PPTX
GraphQL.pptx
PPTX
GraphQL.pptx
PDF
GraphQL for Native Apps
PDF
From rest api to graph ql a 10 year journey
PDF
GraphQL over REST at Reactathon 2018
PDF
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
PDF
apidays LIVE Paris - GraphQL meshes by Jens Neuse
PPTX
GraphQL - an elegant weapon... for more civilized age
PDF
Apollo server II
PDF
GraphQL Meetup Bangkok 3.0
PDF
GraphQL with .NET Core Microservices.pdf
PDF
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
PDF
Modern APIs with GraphQL
PPTX
apidays Munich 2025 - GraphQL 101: I won't REST, until you GraphQL, Surbhi Si...
PPTX
Build the API you want to see in the world
GraphQL research summary
GraphQL is actually rest
GraphQL - A love story
Andrea Baldon, Emanuele Di Saverio - GraphQL for Native Apps: the MyAXA case ...
All you need to know about GraphQL.pdf
GraphQL.pptx
GraphQL.pptx
GraphQL for Native Apps
From rest api to graph ql a 10 year journey
GraphQL over REST at Reactathon 2018
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
apidays LIVE Paris - GraphQL meshes by Jens Neuse
GraphQL - an elegant weapon... for more civilized age
Apollo server II
GraphQL Meetup Bangkok 3.0
GraphQL with .NET Core Microservices.pdf
Introduction to GraphQL (or How I Learned to Stop Worrying about REST APIs)
Modern APIs with GraphQL
apidays Munich 2025 - GraphQL 101: I won't REST, until you GraphQL, Surbhi Si...
Build the API you want to see in the world
Ad

Recently uploaded (20)

PDF
How Tridens DevSecOps Ensures Compliance, Security, and Agility
PPTX
Airline CRS | Airline CRS Systems | CRS System
PPTX
Python is a high-level, interpreted programming language
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
CNN LeNet5 Architecture: Neural Networks
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PDF
DNT Brochure 2025 – ISV Solutions @ D365
PDF
CCleaner 6.39.11548 Crack 2025 License Key
PPTX
Full-Stack Developer Courses That Actually Land You Jobs
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
Tech Workshop Escape Room Tech Workshop
PDF
AI Guide for Business Growth - Arna Softech
PPTX
Download Adobe Photoshop Crack 2025 Free
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
E-Commerce Website Development Companyin india
PDF
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
PPTX
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
PPTX
Computer Software - Technology and Livelihood Education
How Tridens DevSecOps Ensures Compliance, Security, and Agility
Airline CRS | Airline CRS Systems | CRS System
Python is a high-level, interpreted programming language
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
CNN LeNet5 Architecture: Neural Networks
Wondershare Recoverit Full Crack New Version (Latest 2025)
DNT Brochure 2025 – ISV Solutions @ D365
CCleaner 6.39.11548 Crack 2025 License Key
Full-Stack Developer Courses That Actually Land You Jobs
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
GSA Content Generator Crack (2025 Latest)
Tech Workshop Escape Room Tech Workshop
AI Guide for Business Growth - Arna Softech
Download Adobe Photoshop Crack 2025 Free
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
E-Commerce Website Development Companyin india
novaPDF Pro 11.9.482 Crack + License Key [Latest 2025]
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
Computer Software - Technology and Livelihood Education

GraphQL.net

  • 4. Why GraphQL? • REST and SOAP often provide APIs from the server perspective, not optimized for data and flows from user interfaces • Apps have to usually make multiple expensive REST calls and do data juggling to get the data in the for that they need • Facebook noticed this in their mobile app development around 2012, released the project as an open source project in 2015 • No over or under-fetching of data, client always gets exactly what they asked for • Do everything the client needs in one call, always • https://www.graphql.org is only a schema definition from Facebook, along with a reference implementation for nodejs/react • Open source implementations on GitHub for Python, Go, .NET Core, Scala, etc…
  • 6. Why GraphQL instead of OData? • GraphQL is a different approach than OData – OData grew out of the SQL Server team at Microsoft, basically making the database queryable/editably from web clients • It doesn’t however solve the problem of overly complex request flows to get user interface optimized data • …and may make the situation worse since you are married to the data model • Also can offer too much power to clients – they can discover and manipulate the database and data directly, which is usually not a good idea - only makes sense in trusted environments • GraphQL offers more flexibility and simplicity on the client side, probably a big win for client productivity and speed
  • 7. Why OData instead of GraphQL? • GraphQL requires a new approach to define and implement GraphQL APIs, with little built-in support in .NET environments • Odata has built in support in several key Microsoft technology stacks, could make it faster to offer internal APIs to clients
  • 8. Why maybe not GraphQL? • It is a new API format – be prepared to learn a new schema format, basically replaces Open API definitions with new GraphQL Schemas, and do completely new implementations for services (very different code than a typical ASP.NET Core REST API controller) • .NET GraphQL open source projects are functional, but still relatively young and maybe not production-ready • Doesn’t conform to REST principles that built the web – uses POST for everything
  • 9. How’s GraphQL.net? • Good! Works great with ASP.net Core, translation from strongly-typed DTOs in .NET Core to dynamic JSON response payloads works like a charm • https://graphql-dotnet.github.io/ • ORM / DB integrations lacking, maybe should also be avoided, best if used as an API gateway which integrates with backend services
  • 10. Demo
  • 11. Who’s publicly using GraphQL? • GitHub • Twitter • The New York Times • Yelp • ... • Your neighbor’s dog?
  • 12. Do some homework.. • Do the intro exercises, they are fast and fun, and do an excellent job of explaining the intention, platform, and concrete implementation steps • https://www.howtographql.com/
  • 13. Takeaway: Always offer an API Gateway to clients – either GraphQL, REST, or both. Don’t make clients integrate directly with backend services or databases.