graphql-engine/server/tests-py/queries/remote_schemas/remote_relationships/teardown.yaml
Auke Booij 88aa42a986 server: Add regression tests for hasura/graphql-engine#7172
In hasura/graphql-engine#7172, an issue was found where under certain conditions a JSON field from Postgres would be parsed as a GraphQL input object, which is not possible in general, and also unnecessary. Luckily, this was already fixed by the time `v2.0.6` got around, presumably thanks to 4a83bb1834. This adds a regression test.

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

GitOrigin-RevId: 1ded1456f6b89726e08f77cf3383ad88c04de451
2021-08-25 21:06:09 +00:00

20 lines
587 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
drop table if exists profiles;
drop table if exists user_profiles;
drop table if exists authors;
drop table if exists employees;
drop function if exists total_marks(students);
drop function if exists total_marks_offset(students, integer);
drop function if exists total_marks_session(students, json);
drop table if exists students;
drop table if exists regression_7172;
# also drops remote relationship as direct dep
- type: remove_remote_schema
args:
name: my-remote-schema