@microbackend/plugin-apollo-server-express
v1.0.1
Published
Micro-backend Apollo Express GraphQL server plugin
Downloads
5
Readme
@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.