apollo-server

  • Version 2.25.1
  • Published
  • 37.6 kB
  • 6 dependencies
  • MIT license

Install

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

Overview

Production ready GraphQL Server

Index

Classes

class ApolloServer

class ApolloServer extends ApolloServerBase {}

    constructor

    constructor(config: any);

      method applyMiddleware

      applyMiddleware: () => void;

        method listen

        listen: (...opts: Array<any>) => Promise<ServerInfo>;

          method start

          start: () => Promise<void>;

            method stop

            stop: () => Promise<void>;

              Interfaces

              interface ServerInfo

              interface ServerInfo {}

                property address

                address: string;

                  property family

                  family: string;

                    property port

                    port: number | string;

                      property server

                      server: http.Server;

                        property subscriptionsPath

                        subscriptionsPath: string;

                          property subscriptionsUrl

                          subscriptionsUrl: string;

                            property url

                            url: string;

                              Package Files (1)

                              Dependencies (6)

                              Dev Dependencies (0)

                              No dev dependencies.

                              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.

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