3 ms·
The image is pretty misleading. It looks as if GraphQL server connects you to REST and SQL. In fact you simply have functions called resolvers where you write
by pier25 9y ago
The image is pretty misleading. It looks as if GraphQL server connects you to REST and SQL.
In fact you simply have functions called resolvers where you write your logic to get data from wherever you want. SQL, NoSQL, API, filesystem, etc.
- djmashko2 9y agoYeah the diagram is intended to represent where GraphQL usually sits in your architecture.
- joesb 9y agoI think the idea is that you shouldn't want to have GraphQL server code containing business logic code in it. GraphQL should just be proxy layer between actual client and the actual, multiple, APIs.
- pier25 9y agoBut then why connect it to SQL and Redis?