GraphQL gateway boilerplate
Starter kit for building API gateway with GraphQL
Setup
You can run the code by installing dependencies with
npm i
and running development environment
npm run dev
GraphQL playground is then accesible at
Technologies
- Node.js
- Apollo server
- Official graphql-js schema builder
- Full TypeScript support
- Express.js
- Eslint, Nodemon, Dotenv, Eslint, Prettier, Jest
blog
This is supporting code for the following articles on our- Input Object Type as an Argument for GraphQL Mutations and Quries
- GraphQL quick tip: How to pass variables in GraphiQL
- GraphQL Scalars and their input and result coercion
- How to use GraphQL enum type and its best practices
- How to design GraphQL custom scalars
- How to use GraphQL aliases
- How to query your schema with GraphQL fragments
- GraphQL List - How to use arrays in GraphQL schema
Notes
- secrets folder should be encrypted using some vault solutions like Google KMS
- https/www redirects should be performed in reverse proxy
- this starter kit has minimal setup and is continously evolving