graphql-engine/server/src-lib/Hasura
Robert 503c220840 server: refactor GraphQL.Transport.HTTP.runGQ for readability
I was trying to figure out how to pipe some information from query
execution to the http log recently, and once again stumbled over the
mess that is `runGQ`. Here's an attempt to break it apart a little bit.

The result should by no means be considered final, but I hope it makes it
somewhate easier to understand what's going on in this function. E.g. now it's
once again somewhat visible how execution of queries and mutations differs.
Had to stop somewhere...

The PR is intended to have no functional change. It consists of individual
commits which should be "obviously" such.

Some thoughts and possible follow-up:
- It'd be good to get rid of the ad hoc `Result` data type again eventually,
  but for the moment I think it's better than the tuples that used to be.
- I think we're quite close to reducing the duplication with WebSocket. E.g.
  executeQueryStep and executeMutationStep might be reusable.
- It's tempting to change the caching API slightly, so that the uncached
  response headers don't have to be pulled from the cache lookup result.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2669
GitOrigin-RevId: ea414d24194509ce29469d74c62fd060b750488d
2021-10-26 11:45:27 +00:00
..
Backends server/mysql: Implement MySQL explain API 2021-10-23 11:43:25 +00:00
Base server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
GraphQL server: refactor GraphQL.Transport.HTTP.runGQ for readability 2021-10-26 11:45:27 +00:00
Incremental server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Metadata server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
RQL server/mssql: add cascade to mssql_run_sql 2021-10-22 14:50:13 +00:00
Server server/mssql: add cascade to mssql_run_sql 2021-10-22 14:50:13 +00:00
SQL server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
App.hs server/tests: initial work on a test suite for DB-to-DB joins 2021-10-20 20:02:34 +00:00
EncJSON.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
GC.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
HTTP.hs server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
Incremental.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Logging.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Prelude.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
QueryTags.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Session.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Tracing.hs server: interpTraceT docs and small changes 2021-09-25 04:00:34 +00:00