GraphQL vs REST API's
MD
R
MarkdownSome insights of using API's in Dual Mode
GraphQL
- Idea is to implement certain design patterns or existing web services
- Best: Isolate the GraphQL from REST API (do not Proxy)
- Composite Pattern (Client > GraphQL > REST API / PostgreSQL / MongoDB)
- Proxy Pattern (Client > GraphQL Proxy > API)
- Facade Pattern (Client > Simplified GraphQL Proxy > API) -eg. 3 queries in one
- Request/Manipulation of data (query) is decoupled from the execution of the actions (resolvers)
Created on 3/16/2020