Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Agenda ● REST and GraphQL ● What is GraphQL ● AWS AppSync ● Build a GraphQL API @womenwhocode #WWCode

Slide 4

Slide 4 text

REST and GraphQL API @womenwhocode #WWCode

Slide 5

Slide 5 text

REST and GraphQL - A Burger Comparison @womenwhocode #WWCode

Slide 6

Slide 6 text

REST API Request @womenwhocode #WWCode Pic Courtesy : https://phpenthusiast.com/blog/what-is-rest-api

Slide 7

Slide 7 text

GraphQL API Request @womenwhocode #WWCode Pic Courtesy:https://www.tutorialspoint.com/

Slide 8

Slide 8 text

REST Github API Response @womenwhocode #WWCode

Slide 9

Slide 9 text

GraphQL Github API Response @womenwhocode #WWCode

Slide 10

Slide 10 text

Short Summary ● GraphQL is an APIs just like RESTful. ● Ask for what you want. ● Use only POST to send data. ● Get Predictable Results. @womenwhocode #WWCode

Slide 11

Slide 11 text

GraphQL Server @womenwhocode #WWCode

Slide 12

Slide 12 text

GraphQL Server comprises of @womenwhocode #WWCode 1. GraphQL schema – API or application data defined and modeled in a GraphQL schema definition language (SDL). 2. Resolvers – business logic linking or “resolving” types/fields defined in the GraphQL schema with the data in the data sources.

Slide 13

Slide 13 text

GraphQL Schema @womenwhocode #WWCode

Slide 14

Slide 14 text

GraphQL Operations @womenwhocode #WWCode - Query (GET) - Subscription - Mutation (PUT/DELETE)

Slide 15

Slide 15 text

Benefits ● No over/under fetching of data. ● Predefined Schema Definition. ● Strongly typed. ● Documentation support via the Schema doc. @womenwhocode #WWCode

Slide 16

Slide 16 text

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools. - - graphql.org @womenwhocode #WWCode

Slide 17

Slide 17 text

Build a GraphQL API server @womenwhocode #WWCode

Slide 18

Slide 18 text

Design Considerations ● Efficiency ● Security ● Caching ● Monitoring ● Documentation ● Database Integration ● Real-time updates ... @womenwhocode #WWCode

Slide 19

Slide 19 text

What if it’s all are provided and managed? @womenwhocode #WWCode

Slide 20

Slide 20 text

The answer is AWS AppSync @womenwhocode #WWCode

Slide 21

Slide 21 text

GraphQL Server consists of @womenwhocode #WWCode

Slide 22

Slide 22 text

AWS AppSync ● Define Schema ● Attach Datasource ● Create Resolvers @womenwhocode #WWCode

Slide 23

Slide 23 text

Demo... @womenwhocode #WWCode

Slide 24

Slide 24 text

Questions ? @womenwhocode #WWCode

Slide 25

Slide 25 text

References https://aws.amazon.com/appsync/blog https://pradheepa.medium.com/lambda-data-source-in-aws-appsync-using- serverless-framework-2f20ee3ed8aa Github : pradheepap Twitter: @pradheepa Website : www.pradheepa.com @womenwhocode #WWCode

Slide 26

Slide 26 text

No content