@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
+
Native iOS + Android apps using C#
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
Native Mobile Apps
Shared App Logic
Shared C# Logic
iOS C# Android C#
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
A query language for your API
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
Query Response
Xamarin + GraphQL
Xamarin + GraphQL
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
GraphQL APIs Are Self Documenting
Users can explore GraphQL APIs using GraphiQL
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
{ “query” : “[Your GraphQL Query]” }
GraphQL Request Body is JSON
JSON contains one field: query
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
Xamarin + GraphQL
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
https://codetraveler.io/Techorama-XamarinGraphQL/
@TheCodeTraveler https://codetraveler.io/Techorama-XamarinGraphQL/
https://codetraveler.io/Techorama-XamarinGraphQL/

More Related Content

PPTX
Consuming GraphQL in C#
PPTX
Xamarin + GraphQL
PPTX
Xamarin + GraphQL
PPTX
Creating Apps with .NET MAUI
PDF
What's New, Hot, & Awesome for Xamarin Developers!
PPTX
Creating Serverless Apps without Writing Any Code
PPTX
Choosing the Best Mobile App Framework
PDF
C# Powered Robots, C# Powered Mobile Apps
Consuming GraphQL in C#
Xamarin + GraphQL
Xamarin + GraphQL
Creating Apps with .NET MAUI
What's New, Hot, & Awesome for Xamarin Developers!
Creating Serverless Apps without Writing Any Code
Choosing the Best Mobile App Framework
C# Powered Robots, C# Powered Mobile Apps

What's hot (11)

PPTX
Apollo GraphQL Workshop
PDF
20180124 android taipei_arinterface
PDF
Betabeers VII- Android Dev@GDGMallorca
PDF
Azure App Service Helpers
PDF
Introduction to GraphQL with Ruby
PPTX
The Future of Xamarin
PPTX
Taking Mobile Development Serverless with C#
PPTX
Agular fromthetrenches2netponto
PDF
Elixir + GraphQL = Absinthe 2019.04.10
PPTX
Focusing on A and E in Chromatic Scale - Jenia Barabanov
PDF
Flutter study jam 2019
Apollo GraphQL Workshop
20180124 android taipei_arinterface
Betabeers VII- Android Dev@GDGMallorca
Azure App Service Helpers
Introduction to GraphQL with Ruby
The Future of Xamarin
Taking Mobile Development Serverless with C#
Agular fromthetrenches2netponto
Elixir + GraphQL = Absinthe 2019.04.10
Focusing on A and E in Chromatic Scale - Jenia Barabanov
Flutter study jam 2019
Ad

Similar to Xamarin + GraphQL (20)

PPTX
Xamarin + GraphQL
PPTX
Introduction to GraphQL
PPTX
Building GraphQL API in C#.pptx
PPTX
Creating iOS & Android Apps in C# using Xamarin
PPTX
Creating iOS & Android Apps in C# using Xamarin
PPTX
Building GraphQL API in C#.pptx
PPTX
Building GraphQL APIs in C#
PPTX
Introduction to Xamarin
PPTX
Creating iOS & Android Apps using Xamarin
PPTX
Creating Native iOS & Android Apps in C#
PDF
Wearables with C# and Xamarin
PDF
Ionic - Revolutionizing Hybrid Mobile Application Development
PPTX
Introduction to Xamarin
PDF
Mono for Android... for Google Devs
PDF
De l'application mobile à l'application web progressive
PPTX
20140207 xamarin-red fabriq-microsoft-techdays-nativemobileappdevelopmentwith...
KEY
Intro to iPhone Development with MonoTouch
PDF
Deep Dive in Xamarin.Forms
KEY
PhoneGap 101 & Toura Mulberry
Xamarin + GraphQL
Introduction to GraphQL
Building GraphQL API in C#.pptx
Creating iOS & Android Apps in C# using Xamarin
Creating iOS & Android Apps in C# using Xamarin
Building GraphQL API in C#.pptx
Building GraphQL APIs in C#
Introduction to Xamarin
Creating iOS & Android Apps using Xamarin
Creating Native iOS & Android Apps in C#
Wearables with C# and Xamarin
Ionic - Revolutionizing Hybrid Mobile Application Development
Introduction to Xamarin
Mono for Android... for Google Devs
De l'application mobile à l'application web progressive
20140207 xamarin-red fabriq-microsoft-techdays-nativemobileappdevelopmentwith...
Intro to iPhone Development with MonoTouch
Deep Dive in Xamarin.Forms
PhoneGap 101 & Toura Mulberry
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 GraphQL APIs in C#.pptx
PPTX
Building MAUI UIs in C#.pptx
PPTX
Creating Apps with .NET MAUI.pptx
PPTX
Building GraphQL APIs in C#.pptx
PPTX
Introduction to Serverless with AWS Lambda in C#.pptx
PPTX
Consuming GraphQL APIs 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 for iOS, Android, macOS + Windows
PPTX
Creating Xamarin.Forms UIs is C#
PPTX
The Future of Xamarin
PPTX
DevReach: Creating Xamarin.Forms UIs in C#
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 GraphQL APIs in C#.pptx
Building MAUI UIs in C#.pptx
Creating Apps with .NET MAUI.pptx
Building GraphQL APIs in C#.pptx
Introduction to Serverless with AWS Lambda in C#.pptx
Consuming GraphQL APIs 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 for iOS, Android, macOS + Windows
Creating Xamarin.Forms UIs is C#
The Future of Xamarin
DevReach: Creating Xamarin.Forms UIs in C#

Recently uploaded (20)

PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Five Habits of High-Impact Board Members
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPT
What is a Computer? Input Devices /output devices
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Architecture types and enterprise applications.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
O2C Customer Invoices to Receipt V15A.pptx
Five Habits of High-Impact Board Members
Web Crawler for Trend Tracking Gen Z Insights.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Hybrid model detection and classification of lung cancer
A comparative study of natural language inference in Swahili using monolingua...
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
1 - Historical Antecedents, Social Consideration.pdf
A novel scalable deep ensemble learning framework for big data classification...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
What is a Computer? Input Devices /output devices
Taming the Chaos: How to Turn Unstructured Data into Decisions
Chapter 5: Probability Theory and Statistics
A review of recent deep learning applications in wood surface defect identifi...
A contest of sentiment analysis: k-nearest neighbor versus neural network
CloudStack 4.21: First Look Webinar slides
Architecture types and enterprise applications.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf

Xamarin + GraphQL

Editor's Notes

  • #18: 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}"; } } }