Package Exports
- serverless-plugin-apollo-graphql-federation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-apollo-graphql-federation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Serverless Plugin Apollo Graphql Federation
A serverless plugin that uploads graphql schemas to Apollo managed federation. This plugin should be used in implementing services. This allows the gateway service to pull schema from apollo managed federation and also stops implementing services from uploading invalid schemas that would cause the gateway to fail.
Usage
Install with npm
npm i -D serverless-plugin-apollo-graphql-federationAdd to serverless.yml
plugins:
- serverless-plugin-apollo-graphql-federationservice:
custom:
apolloGraphQLFederation:
graphs:
- name: 'myGraph'
apolloKey: apollo-api-key-for-my-graph
url: https://my-implementing-service/mygraphendpoint
schema: './myGraph/schema.gql',Couldn't I just use the serverless-hooks-plugin to do this?
Yes you could but this would potentially log your apolloKey in your build server logs which is undesirable.