Publicité
Publicité

Contenu connexe

Publicité

Building GraphQL APIs in C#.pptx

  1. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ +
  2. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/
  3. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ https://facebook.com/user/id https://facebook.com/user/id/events https://facebook.com/user/id/friends-suggestions https://facebook.com/user/id/friends-birthdays …
  4. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/
  5. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ GraphQL API Requests query { user(id:18794326) { name events { count } friends_suggestions(first: 1) { name mutual_friends { count } } } } { "data": { "user": { "name": "Brandon Minnick", "events": { "count": 4 }, "friends_suggestions": [{ "name": "Seth Juarez", "mutual_friends": { "count": 18 } } ] } } } Query Response
  6. GitHub GraphQL API
  7. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ GraphQL APIs Have One Endpoint Each GraphQL Request Uses The Same API Endpoint
  8. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ GraphQL APIs Are Self Documenting Users can explore GraphQL APIs using GraphiQL
  9. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ GraphQL Requests Are POST Requests GraphQL requests leverage the HTTP POST Method
  10. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ { “query” : “[Your GraphQL Query]” } GraphQL Request Body is JSON JSON contains one field: query
  11. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ GraphQL Response is JSON Like REST APIs, GraphQL APIs return JSON
  12. Let’s Write Some Code
  13. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/
  14. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/  GraphQL-DotNet  Open Source (150+ Contributors)  16.5M NuGet Downloads
  15. AWS AppSync
  16. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ Resources https://codetraveler.io/dotnet-graphql-orlando/
  17. @TheCodeTraveler https://codetraveler.io/dotnet-graphql-orlando/ Thank You https://codetraveler.io/dotnet-graphql-orlando/
Publicité