mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 05:21:47 +03:00
a9e3a1b4bd
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2495 GitOrigin-RevId: ef250a0796200be6b75363b4275eb8a7ae780154
72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
- description: test that aggregates with no results are returned as special structs with structure preserving nulls
|
|
url: /v1/graphql
|
|
status: 200
|
|
query:
|
|
query: |
|
|
query {
|
|
hasura_test_author(order_by: {id: asc}) {
|
|
id
|
|
articles_aggregate(offset: 10) {
|
|
aggregate {
|
|
count(distinct: true)
|
|
max {
|
|
is_published
|
|
}
|
|
min {
|
|
is_published
|
|
}
|
|
sum {
|
|
id
|
|
author_id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
response:
|
|
data:
|
|
hasura_test_author:
|
|
- id: '1'
|
|
articles_aggregate:
|
|
aggregate:
|
|
count: '0'
|
|
max:
|
|
is_published: null
|
|
min:
|
|
is_published: null
|
|
sum:
|
|
id: null
|
|
author_id: null
|
|
- id: '2'
|
|
articles_aggregate:
|
|
aggregate:
|
|
count: '0'
|
|
max:
|
|
is_published: null
|
|
min:
|
|
is_published: null
|
|
sum:
|
|
id: null
|
|
author_id: null
|
|
|
|
- description: test that null object joins result in expected structures
|
|
url: /v1/graphql
|
|
status: 200
|
|
query:
|
|
query: |
|
|
query {
|
|
hasura_test_article(offset: 10) {
|
|
id
|
|
author {
|
|
id
|
|
name
|
|
articles {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
response:
|
|
data:
|
|
hasura_test_article: []
|