Building a Portable Apollo Server Config
Blog post from Apollo
The text discusses building a portable Apollo Server config, which allows developers to run Apollo Server in different environments (Express and AWS Lambda) without duplicating code. The author introduces the concept of a "config object" that can be shared across integrations, encapsulating schema-related code, resolvers, datasources, and context-related logic. The config object is created using a function called `createConfig`, which takes an environment-specific object as input and returns a new config object with the necessary values. This approach enables developers to use the same codebase for local development and production deployment, making it easier to maintain and update their application. The author also discusses how to handle integration-specific code and context-related logic in a way that makes them portable across environments.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Serverless | 22 | 432 | 77 | 33 | -31% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.