Summary
As we can see, even though GraphQL differs from REST, building a backend based on a functional REST service is not very complicated if you understand the service’s rules.
In this chapter, we learned how to initialize a GraphQL backend in TypeScript and communicate with a REST service. Using a specific code sample, we created our backend to demonstrate the simplicity of using a REST-to-GraphQL proxy.
We also looked at the main advantages and disadvantages of REST and GraphQL, as well as discussed the similarities and differences between how their backends work by exploring topics such as caching, headers, and responses.
In the next chapter, we will learn how to build CRUD systems using a tool that was created shortly after the development of GraphQL and is not embedded in its specification – transformers.