graphql-engine/server
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
..
bench-wrk server: generalize integration tests 2021-03-11 18:18:41 +00:00
benchmarks server benchmarks: fix running bench.sh locally in both modes; add missing --network=host in postgres container 2021-08-22 07:14:15 +00:00
documentation Add new documentation folder and two documentation files 2021-09-15 10:04:24 +00:00
packaging ci: create non-root user hasura in graphql engine docker images 2021-09-14 08:18:20 +00:00
src-exec server: remove the execute command from the graphql-engine 2021-09-08 13:07:18 +00:00
src-lib Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484) 2021-09-15 13:11:48 +00:00
src-rsr tag release v2.0.9 2021-09-07 07:49:53 +00:00
src-test server: log operation details for each query in a batch query execution 2021-09-15 08:30:32 +00:00
tests-py Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484) 2021-09-15 13:11:48 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore server/citus: feature branch 2021-05-21 02:47:51 +00:00
.hlint.yaml ci: improve hlint messages 2021-05-04 21:52:55 +00:00
.stylish-haskell.yaml ci: run stylish haskell on all incoming PRs 2021-01-21 23:37:26 +00:00
cabal.project.ci update resource limits on circleci [force ci] 2021-01-29 14:36:07 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
CONTRIBUTING.md server: add a short note clarifying order of teardown functions 2021-08-24 09:20:13 +00:00
graphql-engine.cabal server: generalize event triggers - incremental PR 2 2021-09-09 11:55:11 +00:00
Makefile Combine oss and pro server configuration 2021-08-11 04:19:27 +00:00
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00