graphql-engine/server/tests-py/queries/graphql_query/bigquery/basic_remote_joins.yaml
Kirill Zaborsky a2afe4116b BigQuery remote joins
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2874
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 24b0304716795a28038629775238996c28b312a3
2021-11-24 16:22:55 +00:00

73 lines
1.4 KiB
YAML

- description: Articles with their author (in outher data source)
url: /v1/graphql
status: 200
response:
data:
hasura_test_article2:
- id: '1'
title: Title 1
content: Content 1
author:
id: '1'
name: Author 1
- id: '2'
title: Title 2
content: Content 2
author:
id: '1'
name: Author 1
- id: '3'
title: Title 3
content: Content 3
author:
id: '2'
name: Author 2
query:
query: |
query {
hasura_test_article2 (order_by: {id: asc}) {
id
title
content
author {
id
name
}
}
}
- description: Author with their articles with (in other data source)
url: /v1/graphql
status: 200
response:
data:
hasura_test_author:
- id: '1'
name: Author 1
articles2:
- id: '1'
title: Title 1
content: Content 1
- id: '2'
title: Title 2
content: Content 2
- id: '2'
name: Author 2
articles2:
- id: '3'
title: Title 3
content: Content 3
query:
query: |
query {
hasura_test_author (order_by: {id: asc}) {
id
name
articles2(order_by: {id: asc}) {
id
title
content
}
}
}