graphql-kungfu

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i graphql-kungfu

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

17.4 kB

Total Files

5

Last publish

Collaborators

  • branliang