serverless-graphql-workshop
serverless-graphql-workshop copied to clipboard
GraphQL and Serverless workshop
serverless-graphql-workshop
In this workshop we'll build a Serverless GraphQL endpoint for an existing voting API.
slides
Build Scalable APIs Using GraphQL and Serverless
Prerequisites
-
A recent version of Node (8+)
Steps
-
Create your own services following steps on services readme
-
Create GraphQL endpoint following steps on api readme
-
Add GraphiQL UI using steps in readme
Demo app
GraphQL endpoint: https://graphqlplayground.azurewebsites.net/api/graphql
GraphiQL endpoint: https://graphqlplayground.azurewebsites.net/api/graphiql
Sample query:
query {
teams {
id
name
points
}
}
Sample mutation:
mutation {
incrementPoints(id:2) {
id
name
points
}
}
🎉 Congrats!! You made it - built your very first GraphQL endpoint on Serverless! 🎉