apollo-server-koa

  • Version 3.13.0
  • Published
  • 23.6 kB
  • 11 dependencies
  • MIT license

Install

npm i apollo-server-koa
yarn add apollo-server-koa
pnpm add apollo-server-koa

Overview

Production-ready Node.js GraphQL server for Koa

Index

Classes

class ApolloServer

class ApolloServer extends ApolloServerBase {}

    method applyMiddleware

    applyMiddleware: ({ app, ...rest }: ServerRegistration) => void;

      method createGraphQLServerOptions

      createGraphQLServerOptions: (ctx: Koa.Context) => Promise<GraphQLOptions>;

        method getMiddleware

        getMiddleware: ({
        path,
        cors,
        bodyParserConfig,
        disableHealthCheck,
        onHealthCheck,
        }?: GetMiddlewareOptions) => Middleware;

          Interfaces

          interface ServerRegistration

          interface ServerRegistration extends GetMiddlewareOptions {}

            property app

            app: Koa;

              Package Files (2)

              Dependencies (11)

              Dev Dependencies (1)

              Peer Dependencies (2)

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/apollo-server-koa.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/apollo-server-koa)
              • HTML
                <a href="https://www.jsdocs.io/package/apollo-server-koa"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>