graphql-engine/server/tests-py/queries/actions/relationships/basic/query_with_relationships.yaml
Vamshi Surabhi 1ca0cb9c74 Fixes remote relationships on actions
Fixes: https://github.com/hasura/graphql-engine/issues/8399. See [this comment](https://github.com/hasura/graphql-engine-mono/pull/4297/files#r853259983) for an explanation.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4297
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
GitOrigin-RevId: accc85a77cb108224b1c78da709dc96d0e4e298d
2022-04-19 17:49:57 +00:00

69 lines
1.2 KiB
YAML

description: Test for relationship data
url: /v1/graphql
status: 200
query:
query: |
query {
without_join_column: get_messages {
content
user {
name
}
}
with_join_column: get_messages {
content
user_name
user {
name
}
}
with_aliased_join_column: get_messages {
content
something: user_name
user {
name
}
}
poisoned_join_column: get_messages {
user_name: content
user {
name
}
}
}
response:
data:
without_join_column:
- content: baz
user:
name: foo
- content: foo
user:
name: bar
with_join_column:
- content: baz
user_name: foo
user:
name: foo
- content: foo
user_name: bar
user:
name: bar
with_aliased_join_column:
- content: baz
something: foo
user:
name: foo
- content: foo
something: bar
user:
name: bar
poisoned_join_column:
- user_name: baz
user:
name: foo
- user_name: foo
user:
name: bar