graphql-engine/server/tests-py/queries
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
..
actions [server] generate the correct type for single-row returning functions 2021-08-11 12:42:30 +00:00
compression [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
endpoints server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
event_triggers server: fix pg_invoke_event_trigger regression 2021-07-27 08:06:25 +00:00
explain [server] revert #2078 "server/postgres: optimize SQL query generation with LIMITs" 2021-08-30 11:54:53 +00:00
graphql_introspection server: fix the nullability of object relationships (fix hasura/graphql-engine#7201) 2021-08-26 15:27:34 +00:00
graphql_mutation Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484) 2021-09-15 13:11:48 +00:00
graphql_query server/bigquery: fix data source references & pytest filter in CI 2021-08-26 18:12:05 +00:00
graphql_validation server: unify parsing Postgres scalars 2021-05-13 20:13:49 +00:00
heterogeneous [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
horizontal_scale/basic sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
inconsistent_objects server: include more detail in inconsistent metadata error messages (fix #6684) 2021-05-19 05:02:53 +00:00
logging [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
query_cache server: disable caching for actions with forward client headers enabled 2021-04-13 07:01:34 +00:00
remote_schemas server: Add regression tests for hasura/graphql-engine#7172 2021-08-25 21:06:09 +00:00
schema/duplication Fix/custom table name 2021-05-18 13:37:27 +00:00
subscriptions server: Check session variables for subscriptions 2021-07-30 21:42:52 +00:00
unauthorized_role [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
v1 server,docs,tests: add support for connection_parameters to pg_add_source API 2021-09-06 17:00:12 +00:00
v2/basic server: add tests ensuring the correct functioning of all endpoints based on user roles 2021-07-16 16:09:25 +00:00
webhooks/request_context pass gql requests into auth webhook POST body (#149) 2021-02-03 07:11:39 +00:00
clear_db_bigquery.yaml Feature/bigquery python tests 2021-04-22 11:32:55 +00:00
clear_db_citus.yaml server/citus: feature branch 2021-05-21 02:47:51 +00:00
clear_db_mssql.yaml server: generalize integration tests 2021-03-11 18:18:41 +00:00
clear_db.yaml python based tests (#387) 2018-09-18 11:51:57 +05:30