Get hands-on with Apollo Connectors with an interactive tutorial
What are Apollo Connectors?
Apollo Connectors provide a declarative language for connecting REST APIs directly to a graph, so that you don't have to write a separate GraphQL server. They're easy and fun to write, with tooling that provides auto-completion and inline validation as you type. And Connectors are just Apollo Federation under the hood so you can write queries that mix GraphQL and REST services in any combination.
API orchestration
for the cloud-native world
Development velocity
Accelerate development with graph-based orchestration by eliminating handwritten code through a declarative query language, supported by robust developer tools.
Operational excellence
Get predictable, production-grade execution with a highly performant, observable and resilient runtime.
High API fidelity
Align your applications and user experiences to a common domain model.
Why choose Apollo Connectors?
Apollo Connectors makes it easy to deliver Federated GraphQL APIs using your existing REST APIs. Using declarative configuration with schema directives, Apollo Connectors make it possible to integrate a REST API in only a few minutes.
Boost developer productivity
Simplify your REST-to-GraphQL integration with a declarative approach. Say goodbye to writing resolvers and maintaining separate GraphQL servers.
Connect to REST APIs using GraphQL directives rather than writing code
Easy to use by GraphQL novices and experts alike
Auto-completion and inline validations right in your IDE
Accelerate adoption of GraphQL at scale
Accelerate company-wide GraphQL implementation, break down API silos, and empower cross-functional teams to innovate rapidly within a unified API landscape.
Bridge the divide between GraphQL and REST API development teams
Leverage Apollo Federation to orchestrate calls to any combination of REST APIs
Quickly integrate REST APIs with no impact to existing API infrastructure
Modernize at your own pace
Seamlessly integrate existing REST APIs into a federated GraphQL architecture, enabling gradual, low-risk adoption of GraphQL across your organization.
Call REST APIs directly from GraphOS Router for a simplified architecture
Start with a single REST API and grow over time
Visualize API performance using the query planner in GraphOS Studio Explorer
Safely and predictably migrate away from legacy services
Mark Meiller
Principal Engineer of Data Services
"Now teams can start with a VIN, decode it to get the vehicle ID, connect to valuations, and get everything they need in one query. We can compose these proven services in ways we never could before. And considering the process would have typically required months or even a year of work from multiple engineers, Apollo Connectors saved us millions. This was monumental."
REST API call orchestration
Using GraphQL directives in your schema, define a REST connector with a URL and data mappings. GraphOS Router will then automatically orchestrate HTTP calls to your REST endpoint and transform the response data.
Learn moreBuilt on Apollo Federation
Extend entities with connectors to combine data from both GraphQL and REST APIs. Connectors work with other Federation features as well.
Learn moreOptimized calls to endpoints
Efficiently and predictively call REST endpoints as required by a GraphQL query to retrieve the required data. Optimized query planning improves performance.
Learn moreResponse mapping
Based on the REST response data, it’s possible to directly select, rename, wrap, unwrap, and transform values. Even complex, deeply nested data can be easily mapped.
Learn moreArgument mapping
Translate GraphQL query arguments to REST URL parameters and request body parameters for GET, PUT, POST, PATCH, or DELETE requests.
Learn moreComputed fields from endpoints
Use connectors to compute the value of a single field by calling a REST endpoint. This provides a flexible way to combine data into a single GraphQL type.
Learn moreCall multiple API versions
Define a single GraphQL type with fields that map across multiple REST API versions. Depending on the GraphQL query, one or many REST API versions will be called automatically.
Learn moreAdvanced use cases
Complex scenarios for mapping REST to GraphQL are made easy. It’s possible to combine multiple endpoints into a single entity, implement pagination, and implement relationships with simple configurations.
Learn moreFeatured Resources