@webiny/api-plugin-create-apollo-gateway
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@webiny/api-plugin-create-apollo-gateway

A plugin to setup an Apollo Federation Gateway.

How to use

Add the plugin to the plugins section of your apollo gateway service:

myService:
  component: "@webiny/serverless-apollo-gateway"
    inputs:
      # ... other inputs ...
    plugins:
      - factory: "@webiny/api-plugin-create-apollo-gateway"
        options:
          server:
            introspection: true
            playground: true
          services:
            - name: security
              url: ${security.api.graphqlUrl}
            - name: files
              url: ${files.api.graphqlUrl}
            - name: pageBuilder
              url: ${pageBuilder.api.graphqlUrl}
            - name: i18n
              url: ${i18n.api.graphqlUrl}

Readme

Keywords

none

Package Sidebar

Install

npm i @webiny/api-plugin-create-apollo-gateway

Weekly Downloads

7

Version

2.0.2

License

MIT

Unpacked Size

20.7 kB

Total Files

12

Last publish

Collaborators

  • webiny