mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
1ca0cb9c74
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
69 lines
1.2 KiB
YAML
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
|