1.0.2 • Published 5 years ago

graphql-kungfu v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

graphql-kungfu

npm version

Easy setup powerful GraphQL Server on AWS Lambda.

Overview

  • Serverless GraphQL server on AWS Lambda
  • First package which support file upload

Features

  • GraphQL spec-compliant
  • File upload
  • TypeScript typings
  • GraphQL Playground
  • Schema directives
  • Full example for reference
  • Supports middleware out of the box.

Install

yarn add graphql-kungfu

Usage

Quickstart

import { GraphQLServerLambda } from 'graphql-kungfu';
import typeDefs from './types';
import resolvers from './resolvers';

const lambda = new GraphQLServerLambda({
  typeDefs,
  resolvers,
  options: {
    endpoint: '/graphql'
  }
});

export const server = lambda.graphqlHandler;
export const playground = lambda.playgroundHandler;

License

This project is licensed under the MIT License.