Our great sponsors
-
examples
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more. (by serverless)
-
graphql-yoga
Discontinued 🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements W3C Fetch API and can run/deploy on any JS environment. [Moved to: https://github.com/dotansimha/graphql-yoga] (by prisma)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
graphql-playground
Discontinued 🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration) [Moved to: https://github.com/graphql/graphql-playground] (by prisma)
You can find the full example project that we’ve been using in this GitHub repo. The easiest way to experiment with the project is to clone the repo and deploy it from your machine using npm run deploy.
The resolvers constant now holds the definitions for all our API's functions. Our next step is to create the GraphQL server. Remember the graphql-yoga library we required above? We'll use that library here to create a working GraphQL server easily and quickly:
Finally, in the serverless.yml file we define two functions, graphql and playground. The graphql function is going to handle all the API requests, and the playground endpoint will create an instance of GraphQL Playground for us, which is a great way to try out our GraphQL API in a web browser:
For more GraphQL API examples using Serverless, check out the serverless-graphql repo.