mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
server: document the remote joins architecture
GitOrigin-RevId: f142908fa3dd3b0cb8887521c639be4a017e606a
This commit is contained in:
parent
42f5d66015
commit
15ed0cf536
@ -24,6 +24,33 @@ import Hasura.RQL.IR.Returning
|
||||
import Hasura.RQL.IR.Select
|
||||
import Hasura.RQL.Types
|
||||
|
||||
{- Note: [Remote Joins Architecture]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Unparsed Incoming GraphQL +------------------------------+
|
||||
--------------------------> | Parsing of the GraphQL query |-----+
|
||||
+------------------------------+ |
|
||||
| DB Query and remote joins (if any)
|
||||
|
|
||||
V
|
||||
+----------------------------------+ SQL query response +----------------------------+
|
||||
| Traverse the DB response to | <------------------- | Execution of the DB query |
|
||||
| get the values of the arguments | +----------------------------+
|
||||
| of the remote field |
|
||||
+----------------------------------+
|
||||
|
|
||||
| Remote field arguments
|
||||
V
|
||||
+--------------------------+ Remote schema response +----------------------------------------+
|
||||
| Query the remote schema | ------------------------> | Replace the remote join fields in |
|
||||
| with the remote field | | the SQL query response (JSON) with |
|
||||
| arguments to the remote | | the response obtained from the remote |
|
||||
| field configured in the | | schema at appropriate places. |
|
||||
| remote join. | +----------------------------------------+
|
||||
+--------------------------+
|
||||
-}
|
||||
|
||||
|
||||
|
||||
-- remote joins info
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user