graphql-engine/server/src-lib/Hasura/GraphQL
Antoine Leblanc a5589c185b Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484)
### Description

During the PDV refactor that led to 2.0, we broke an undocumented and untested semantic of inserts: accepting _explicit_ null values in nested object inserts.

In short: in the schema, we often distinguish between _explicit_ null values `{id: 3, author: null}` and _implicit_ null values that correspond to the field being omitted `{id: 3}`. In this particular case, we forgot to accept explicit null values. Since the field is optional (meaning we accept implicit null values), it was nullable in the schema, like it was in pre-PDV times. But in practice we would reject explicit nulls.

This PR fixes this, and adds a test. Furthermore, it does a bit of a cleanup of the Mutation part of the schema, and more specifically of all insertion code.

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

GitOrigin-RevId: 895cfeecef7e8e49903a3fb37987707150446eb0
2021-09-15 13:11:48 +00:00
..
Execute server/mssql: integrate insert mutation schema parser for MSSQL backend 2021-08-31 13:35:49 +00:00
Parser server: reduce memory usage during type collection by using a more concrete effect stack 2021-08-24 09:16:15 +00:00
Schema Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484) 2021-09-15 13:11:48 +00:00
Transport server: log operation details for each query in a batch query execution 2021-09-15 08:30:32 +00:00
Context.hs server: remove remnants of query plan caching (fix #1795) 2021-07-27 11:52:43 +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 Fix getCustomizer test case 2021-08-03 13:17:34 +00:00
Schema.hs server: inherited roles for mutations, remote schemas, actions and custom functions 2021-08-09 10:21:05 +00:00