apollo-server-koa

  • Version 2.25.0
  • Published
  • 62.3 kB
  • 16 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: any) => Promise<GraphQLOptions>;

        method getMiddleware

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

          method supportsSubscriptions

          protected supportsSubscriptions: () => boolean;

            method supportsUploads

            protected supportsUploads: () => boolean;

              Interfaces

              interface ServerRegistration

              interface ServerRegistration extends GetMiddlewareOptions {}

                property app

                app: Koa;

                  Package Files (2)

                  Dependencies (16)

                  Dev Dependencies (1)

                  Peer Dependencies (1)

                  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>