2021-06-15 11:58:21 +03:00
|
|
|
- description: test that aggregates with no results are returned as special structs with structure preserving nulls
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
query:
|
|
|
|
query: |
|
2021-10-12 20:58:46 +03:00
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_author(order_by: {id: asc}) {
|
2021-06-15 11:58:21 +03:00
|
|
|
id
|
|
|
|
articles_aggregate(offset: 10) {
|
|
|
|
aggregate {
|
|
|
|
count(distinct: true)
|
|
|
|
max {
|
|
|
|
is_published
|
|
|
|
}
|
|
|
|
min {
|
|
|
|
is_published
|
|
|
|
}
|
|
|
|
sum {
|
|
|
|
id
|
|
|
|
author_id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_author:
|
2021-06-15 11:58:21 +03:00
|
|
|
- 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: |
|
2021-10-12 20:58:46 +03:00
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article(offset: 10) {
|
2021-06-15 11:58:21 +03:00
|
|
|
id
|
|
|
|
author {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
articles {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article: []
|