Skip to content

simonaco/serverless-graphql-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. A recent version of Node (8+)

  2. VS Code

  3. Azure Functions CLI

  4. Azure Functions Extension for VS Code

  5. Free Azure Account

Steps

  1. Create your own services following steps on services readme

  2. Create GraphQL endpoint following steps on api readme

  3. 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! 🎉