apollo-server

Solid

Apollo Server configuration, plugins, caching, federation, and performance optimization.

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apollo Server Skill Expert assistance for implementing GraphQL APIs with Apollo Server. ## Capabilities - Configure Apollo Server with Express/Fastify - Implement plugins for logging and metrics - Set up caching strategies - Build Apollo Federation gateways - Handle authentication context - Optimize performance with persisted queries ## Usage Invoke this skill when you need to: - Set up Apollo Server - Implement caching - Build federated services - Add custom plugins - Configure subscriptions ## Patterns ### Basic Setup ```typescript import { ApolloServer } from '@apollo/server'; import { expressMiddleware } from '@apollo/server/express4'; import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer'; import express from 'express'; import http from 'http'; import cors from 'cors'; import { typeDefs } from './schema'; import { resolvers } from './resolvers'; import { createContext } from './context'; async function startServer() { const app = express(); const httpServer = http.createServer(app); const server = new ApolloServer({ typeDefs, resolvers, plugins: [ApolloServerPluginDrainHttpServer({ httpServer })], }); await server.start(); app.use( '/graphql', cors(), express.json(), expressMiddleware(server, { context: createContext, }) ); await new Promise<void>((resolve) => httpServer.listen({ port: 4000 }, resolve) ); console.log('Server ready at http://localhost:4000/grap...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

graphql-implementation

Builds GraphQL APIs with schema design, resolvers, error handling, and performance optimization using Apollo or Graphene. Use when creating flexible query APIs, migrating from REST, or implementing real-time subscriptions.

162 Updated 2 weeks ago
secondsky
API & Backend Featured

graphql

GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server.

39,350 Updated today
sickn33
AI & Automation Featured

apollo-reference-architecture

Implement Apollo.io reference architecture. Use when designing Apollo integrations, establishing patterns, or building production-grade sales intelligence systems. Trigger with phrases like "apollo architecture", "apollo system design", "apollo integration patterns", "apollo best practices architecture".

2,274 Updated today
jeremylongshore
API & Backend Featured

building-graphql-server

Build production-ready GraphQL servers with schema design, resolvers, and subscriptions. Use when building GraphQL APIs with schemas and resolvers. Trigger with phrases like "build GraphQL API", "create GraphQL server", or "setup GraphQL".

2,274 Updated today
jeremylongshore
AI & Automation Featured

apollo-install-auth

Install and configure Apollo.io API authentication. Use when setting up a new Apollo integration, configuring API keys, or initializing Apollo client in your project. Trigger with phrases like "install apollo", "setup apollo api", "apollo authentication", "configure apollo api key".

2,274 Updated today
jeremylongshore