Apollo Adds REST APIs For GraphQL
Written by Kay Ewbank   
Tuesday, 29 October 2024

Apollo has added a simpler way to integrate REST APIs into a federated GraphQL environment. Available now in public preview, can be used to map REST API endpoints to their GraphQL schema using a declarative syntax.

GraphQL is a query language for APIs originally developed at Facebook then made open source with its own foundation. Options for using GraphQL include Apollo and Hasura. A GraphQL query is a string that is sent to a server to be interpreted and fulfilled, which then returns JSON back to the client.

apollo

Apollo's support for GraphQL provides a set of open-source and proprietary tools to enable developers to build apps with GraphQL. There's a JavaScript Apollo Server that can be used to create a custom GraphQL server, and a front-end client SDK.

 

apollo graph

The new Apollo Connectors are intended for developers who want to use a GraphQL API using non-GraphQL services. Developers can use a declarative syntax in their schema files to connect GraphQL fields to HTTP APIs. GraphOS Router uses that information to talk directly to the API with no need for a subgraph.

Until now, if a developer wanted to add a REST service to their federated GraphQL API, they had to deploy a new subgraph service, including monitoring, auto-scaling, and load-balancing, that would then sit in between the router and the REST API. Apollo Connectors now eliminate the need for the intermediate service, and the router then speaks directly to the REST APIs.

Apollo says the new connectors will let teams supporting existing REST APIs provide GraphQL interfaces quickly and easily. Apollo GraphOS provides standardized tooling for using Apollo Connectors. Its context-aware smart editor and Visual Studio Code extension provides auto-completion, linting, and in-line validations.

Alongside the new REST APIs, Apollo GraphOS has added support for custom schema checks, so developers can integrate local business logic and governance rules into Apollo's existing schema check workflow.

Local workflows have also been enhanced with improvements to Rover, Apollo's command-line interface for GraphOS. This is now more closely integrated with GraphOS Studio and is up to ten times faster when composing large graphs thanks to a move to parallel and asynchronous execution of commands like compose and fetch. Rover also now supports subgraph mirroring, an automated workflow that allows developers to fetch and test subgraph configurations on their local machines. 

apollo

More Information

Apollo GraphQL Website

ApolloGraphQL On GitHub

Related Articles

Hasura GraphQL Adds REST Support

Spring GraphQL Milestone One

Facebook GraphQL Gets Own Foundation

GraphQL Leaves Tech Preview

Facebook Apollo NoSQL Database

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Looking Forward To NAO 7
03/11/2024

Introduced to the world in 2004 by its creator Bruno Maisonnier the kid-sized, autonomous humanoid robot NAO, turns 20 this year. At less than 2 ft tall, it is small in stature, but plays a big r [ ... ]



CSS Ecosystem In the Spotlight
06/11/2024

The 2024 edition of the State of CSS has been posted, revealing that the latest features of the language not only do away with extra tooling, but even start taking on tasks that previously requir [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info