In this workshop we'll build a Serverless GraphQL endpoint for an existing voting API.
Build Scalable APIs Using GraphQL and Serverless
-
A recent version of Node (8+)
-
Create your own services following steps on services readme
-
Create GraphQL endpoint following steps on api readme
-
Add GraphiQL UI using steps in readme
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! 🎉