graphql-engine/server/src-lib/Hasura/GraphQL/Parser
Antoine Leblanc 07fd7324c3 server: enable StrictData by default (fix hasura/graphql-engine#3941)
## Description

Almost all our data structures use strictness annotations, following [our styleguide's principle](https://github.com/hasura/graphql-engine/blob/master/server/STYLE.md#dealing-with-laziness) of "by default, use strict data types and lazy functions". The very few cases where we actually need laziness were already explicitly labelled as lazy with the `~` prefix operator.

This PR simply globally enables `StrictData`, allowing us to express records without `!()` on every field, but makes no attempt at cleaning existing code.

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

Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com>
GitOrigin-RevId: e65c6e2f89413188da250122f64c2173615946ec
2021-09-16 12:23:15 +00:00
..
Class server: remove remnants of query plan caching (fix #1795) 2021-07-27 11:52:43 +00:00
Internal server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Class.hs server: remove remnants of query plan caching (fix #1795) 2021-07-27 11:52:43 +00:00
Collect.hs server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Column.hs server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Directives.hs Implement refresh parameter for Cached Directive 2021-06-17 06:28:45 +00:00
Monad.hs server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Schema.hs server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00