graphql-engine/server/src-lib/Hasura/GraphQL
Robert d900a65399 server: Reduce and localize CPP usage
Some of our use of CPP causes trouble for ormolu, compare https://github.com/tweag/ormolu/issues/774.
Specifically, for understandable reasons, it can't deal well with `#ifdef` use that is not at the top-level.

This PR removes the problematic usage in ways that I hope are also a net non-loss regardless of helping
out ormolu (or other tooling).

- The default value for enabled APIs moves to the top level, next to the command line help, so
  they'll stay in sync more easily.
- All the CPP around using `assertNFHere` is moved to one module.

https://github.com/hasura/graphql-engine-mono/pull/2361

GitOrigin-RevId: ed6e039e6d8960322fd8d1312df762ad197c29b1
2021-09-16 18:52:37 +00:00
..
Execute server: Reduce and localize CPP usage 2021-09-16 18:52:37 +00:00
Parser server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Schema Request Transformations 2021-09-16 11:03:57 +00:00
Transport server: Reduce and localize CPP usage 2021-09-16 18:52:37 +00:00
Context.hs server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Execute.hs Remote Schema Customization take 2 using parser tranformations 2021-07-30 11:33:59 +00:00
Explain.hs Remote Schema Customization take 2 using parser tranformations 2021-07-30 11:33:59 +00:00
Logging.hs server: fix regression in query-log generation 2021-04-28 17:39:02 +00:00
ParameterizedQueryHash.hs pro, server: improve parameterised query hash handling for batched requests (fix #1767) 2021-08-02 16:05:17 +00:00
Parser.hs server: introduce new custom scalars and remove offsetParser 2021-06-10 16:14:21 +00:00
RemoteServer.hs Request Transformations 2021-09-16 11:03:57 +00:00
Schema.hs Prevent empty subscription roots (fix hasura/graphql-engine#6898) 2021-09-16 07:42:46 +00:00