SlideShare a Scribd company logo
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
+
A query language for your API
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
Query Response
Xamarin + GraphQL
Xamarin + GraphQL
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
GraphQL APIs Are Self Documenting
Users can explore GraphQL APIs using GraphiQL
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
{ “query” : “[Your GraphQL Query]” }
GraphQL Request Body is JSON
JSON contains one field: query
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
Xamarin + GraphQL
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
https://codetraveler.io/Indy-Xamarin-GraphQL/
@TheCodeTraveler https://codetraveler.io/indy-xamarin-graphql/
https://codetraveler.io/Indy-Xamarin-GraphQL/

More Related Content

PPTX
Introduction to GraphQL
PPTX
Creating Xamarin.Forms UIs is C#
PPTX
Building GraphQL APIs in C#
PPTX
The Future of Xamarin
PPTX
Creating iOS & Android Apps using Xamarin
PPTX
Xamarin + GraphQL
PDF
An introduction to GraphQL in .NET Core
PDF
Intro to Ionic Framework
Introduction to GraphQL
Creating Xamarin.Forms UIs is C#
Building GraphQL APIs in C#
The Future of Xamarin
Creating iOS & Android Apps using Xamarin
Xamarin + GraphQL
An introduction to GraphQL in .NET Core
Intro to Ionic Framework

Similar to Xamarin + GraphQL (20)

PPTX
Building GraphQL API in C#.pptx
PPTX
Xamarin + GraphQL
PPTX
Xamarin + GraphQL
PPTX
Building GraphQL API in C#.pptx
PPTX
Apollo GraphQL Workshop
PPTX
Consuming GraphQL APIs in C#.pptx
PPTX
Introduction to GraphQL Presentation.pptx
PDF
Overview of GraphQL & Clients
PDF
GraphQL with .NET Core Microservices.pdf
PPTX
Shift Remote: WEB - GraphQL and React – Quick Start - Dubravko Bogovic (Infobip)
PPTX
Building GraphQL APIs in C#.pptx
PPT
Graphql presentation
PPTX
Building GraphQL APIs in C#.pptx
PDF
Why UI developers love GraphQL
PDF
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
PDF
Dev sum - Beyond REST with GraphQL in .Net
PDF
Exploring GraphQL
PDF
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
PDF
GraphQL with Spring Boot
PDF
GraphQL IN Golang
Building GraphQL API in C#.pptx
Xamarin + GraphQL
Xamarin + GraphQL
Building GraphQL API in C#.pptx
Apollo GraphQL Workshop
Consuming GraphQL APIs in C#.pptx
Introduction to GraphQL Presentation.pptx
Overview of GraphQL & Clients
GraphQL with .NET Core Microservices.pdf
Shift Remote: WEB - GraphQL and React – Quick Start - Dubravko Bogovic (Infobip)
Building GraphQL APIs in C#.pptx
Graphql presentation
Building GraphQL APIs in C#.pptx
Why UI developers love GraphQL
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
Dev sum - Beyond REST with GraphQL in .Net
Exploring GraphQL
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
GraphQL with Spring Boot
GraphQL IN Golang
Ad

More from Brandon Minnick, MBA (20)

PPTX
Choosing The Best AWS Service For Your Website + API.pptx
PPTX
Introduction to Serverless with AWS Lambda in C#.pptx
PPTX
Correcting Common Mistakes, AsyncAwait.pptx
PPTX
The .NET MAUI Community Toolkits.pptx
PPTX
Introduction to Serverless with AWS Lambda in C#.pptx
PPTX
Correcting Common Async Await Mistakes in .NET
PPTX
AWS Toolkit.pptx
PPTX
Building MAUI UIs in C#.pptx
PPTX
Creating Apps with .NET MAUI.pptx
PPTX
Introduction to Serverless with AWS Lambda in C#.pptx
PPTX
Correcting Common .NET Mistakes in Async Await .pptx
PPTX
Introducing .NET MAUI Toolkit.pptx
PPTX
Building MAUI UI in C#.pptx
PPTX
Creating Apps with .NET MAUI
PPTX
Creating Apps With .NET MAUI for iOS, Android, macOS + Windows
PPTX
The Future of Xamarin
PPTX
Creating Native iOS & Android Apps in C#
PPTX
DevReach: Creating Xamarin.Forms UIs in C#
PPTX
The Future of Xamarin
PPTX
Creating Serverless Apps without Writing Any Code
Choosing The Best AWS Service For Your Website + API.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Correcting Common Mistakes, AsyncAwait.pptx
The .NET MAUI Community Toolkits.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Correcting Common Async Await Mistakes in .NET
AWS Toolkit.pptx
Building MAUI UIs in C#.pptx
Creating Apps with .NET MAUI.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Correcting Common .NET Mistakes in Async Await .pptx
Introducing .NET MAUI Toolkit.pptx
Building MAUI UI in C#.pptx
Creating Apps with .NET MAUI
Creating Apps With .NET MAUI for iOS, Android, macOS + Windows
The Future of Xamarin
Creating Native iOS & Android Apps in C#
DevReach: Creating Xamarin.Forms UIs in C#
The Future of Xamarin
Creating Serverless Apps without Writing Any Code
Ad

Recently uploaded (20)

PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Modernising the Digital Integration Hub
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
project resource management chapter-09.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Getting Started with Data Integration: FME Form 101
PPTX
The various Industrial Revolutions .pptx
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
1. Introduction to Computer Programming.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
August Patch Tuesday
PDF
STKI Israel Market Study 2025 version august
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Zenith AI: Advanced Artificial Intelligence
cloud_computing_Infrastucture_as_cloud_p
Enhancing emotion recognition model for a student engagement use case through...
Module 1.ppt Iot fundamentals and Architecture
OMC Textile Division Presentation 2021.pptx
Modernising the Digital Integration Hub
WOOl fibre morphology and structure.pdf for textiles
project resource management chapter-09.pdf
Assigned Numbers - 2025 - Bluetooth® Document
observCloud-Native Containerability and monitoring.pptx
Getting Started with Data Integration: FME Form 101
The various Industrial Revolutions .pptx
Developing a website for English-speaking practice to English as a foreign la...
1. Introduction to Computer Programming.pptx
NewMind AI Weekly Chronicles - August'25-Week II
O2C Customer Invoices to Receipt V15A.pptx
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
August Patch Tuesday
STKI Israel Market Study 2025 version august
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game

Editor's Notes

  • #15: using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using GraphQL.Client; using GraphQL.Client.Http; using GraphQL.Common.Request; using GraphQL.Common.Response; using Newtonsoft.Json; using Xamarin.Forms; namespace XamarinGraphQL { // Learn more about making custom code visible in the Xamarin.Forms previewer // by visiting https://aka.ms/xamarinforms-previewer [DesignTimeVisible(false)] public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } protected override async void OnAppearing() { base.OnAppearing(); ResponseLabel.Text = "Retrieving Data..."; var client = new HttpClient(); client.DefaultRequestHeaders.Add("User-Agent", nameof(XamarinGraphQL)); client.DefaultRequestHeaders.Add("Authorization", "bearer ceeddf326115d5f094526b7f29fe980e565e497d"); var stringContent = new StringContent("{ \"query\":\"query{ user(login: brminnick) { bio, company, createdAt }}\"}"); var response = await client.PostAsync("https://api.github.com/graphql", stringContent); var json = await response.Content.ReadAsStringAsync(); var userResponse = JsonConvert.DeserializeObject<UserResponse>(json); ResponseLabel.Text = userResponse.Data.User.Bio; } } } -------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using GraphQL.Client; using GraphQL.Client.Http; using GraphQL.Common.Request; using GraphQL.Common.Response; using ModernHttpClient; using Newtonsoft.Json; using Xamarin.Forms; namespace XamarinGraphQL { // Learn more about making custom code visible in the Xamarin.Forms previewer // by visiting https://aka.ms/xamarinforms-previewer [DesignTimeVisible(false)] public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } protected override async void OnAppearing() { base.OnAppearing(); ResponseLabel.Text = "Retrieving Data..."; var options = new GraphQLHttpClientOptions { EndPoint = new Uri("https://api.github.com/graphql"), HttpMessageHandler = new NativeMessageHandler() }; var client = new GraphQLHttpClient(options); client.DefaultRequestHeaders.Add("User-Agent", nameof(XamarinGraphQL)); client.DefaultRequestHeaders.Add("Authorization", "bearer ceeddf326115d5f094526b7f29fe980e565e497d"); GraphQLResponse response = await client.SendQueryAsync(new GraphQLRequest { Query = "query{ user(login: brminnick) { bio, company, createdAt }}" }); var bio = response.Data.user.bio; var company = response.GetDataFieldAs<User>("user").Company; var createdAt = response.GetDataFieldAs<User>(nameof(User).ToLower()).CreatedAt; ResponseLabel.Text = $"createdAt: {createdAt}\n\nbio: {bio}\n\ncompany: {company}"; } } }