# Layering GraphQL on top of REST

DevFeed: [Layering GraphQL on top of REST](<https://devfeed.tech/articles/layering-graphql-on-top-of-rest-23439.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/layering-graphql-on-top-of-rest>)

Author: Prosper Otemuyiwa

Published: 2018-09-05T23:50:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [apollo-server](<https://devfeed.tech/topics/apollo-server.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [backend](<https://devfeed.tech/tags/backend.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [php](<https://devfeed.tech/tags/php.md>), [rest](<https://devfeed.tech/tags/rest.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [schema](<https://devfeed.tech/tags/schema.md>)

## AI overview

A tutorial on adding a GraphQL layer over existing REST APIs and services. It uses a Motor Vehicle Registration Information Portal API as a case study and Apollo Server to build a schema over the PHP API.

## Source excerpt

GraphQL is quickly replacing REST as the standard for which data is queried, fetched and transformed between the frontend and backend. And developers are looking to explore and reap its benefits in their brown-field projects. The benefits of GraphQL are numerous, some of which are: - Querying many resources and retrieving the exact data you want in one request. - A new generation of ergonomic developer tools from API to the client-side with platforms like Apollo (Client, Server, Engine).