@microbackend/plugin-apollo-server-express
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@microbackend/plugin-apollo-server-express

Microbackend plugin to add core support for Apollo Server Express.

Dependency

Installation

npx microbackend plugin add @microbackend/plugin-apollo-server-express

Usage

Configuration

The plugin extends the IMicrobackendConfig from @microbackend/plugin-core to allow configuring the Apollo Server via the apolloServerExpress property:

import { MicrobackendConfig } from "@microbackend/plugin-core";
import gql from "graphql-tag";

export default class Config extends MicrobackendConfig {
  get config(): MicrobackendConfig["config"] {
    return {
      apolloServerExpress: {
        /** Apollo Server configurations */
      },
    };
  }
}

The supported configuration options can be found in the Apollo Server Express docs.

Readme

Keywords

none

Package Sidebar

Install

npm i @microbackend/plugin-apollo-server-express

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

22 kB

Total Files

20

Last publish

Collaborators

  • protoman92
  • haipham