2022-01-13 18:08:50 +03:00
|
|
|
- description: Check that object relation in agg nodes work correctly
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article:
|
2022-01-13 18:08:50 +03:00
|
|
|
- id: '1'
|
|
|
|
title: Title 1
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- id: '1'
|
|
|
|
title: Title 1
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
- id: '2'
|
|
|
|
title: Title 2
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
- id: '2'
|
|
|
|
title: Title 2
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- id: '1'
|
|
|
|
title: Title 1
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
- id: '2'
|
|
|
|
title: Title 2
|
|
|
|
author:
|
|
|
|
id: '1'
|
|
|
|
name: Author 1
|
|
|
|
- id: '3'
|
|
|
|
title: Title 3
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- id: '3'
|
|
|
|
title: Title 3
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
2022-01-17 13:01:25 +03:00
|
|
|
- id: '4'
|
|
|
|
title: Title 4
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
|
|
|
- id: '4'
|
|
|
|
title: Title 4
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- id: '3'
|
|
|
|
title: Title 3
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
|
|
|
- id: '4'
|
|
|
|
title: Title 4
|
|
|
|
author:
|
|
|
|
id: '2'
|
|
|
|
name: Author 2
|
2022-01-13 18:08:50 +03:00
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article(order_by: {id: asc}) {
|
2022-01-13 18:08:50 +03:00
|
|
|
id
|
|
|
|
title
|
|
|
|
author {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
articles_aggregate(order_by: {id: asc}) {
|
|
|
|
nodes {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
author {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- description: Check that array relation in agg nodes work correctly
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_author:
|
2022-01-13 18:08:50 +03:00
|
|
|
- id: '1'
|
|
|
|
name: Author 1
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- title: Title 1
|
|
|
|
article_citations:
|
|
|
|
- description: citing the 2nd
|
|
|
|
- description: citing the third as well
|
|
|
|
- title: Title 2
|
|
|
|
article_citations:
|
|
|
|
- description: the second also cites the third
|
|
|
|
- id: '2'
|
|
|
|
name: Author 2
|
|
|
|
articles_aggregate:
|
|
|
|
nodes:
|
|
|
|
- title: Title 3
|
|
|
|
article_citations: []
|
2022-01-17 13:01:25 +03:00
|
|
|
- title: Title 4
|
|
|
|
article_citations: []
|
2022-01-13 18:08:50 +03:00
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_author(order_by: {id: asc}) {
|
2022-01-13 18:08:50 +03:00
|
|
|
id
|
|
|
|
name
|
|
|
|
articles_aggregate(order_by: {id: asc}) {
|
|
|
|
nodes {
|
|
|
|
title
|
|
|
|
article_citations(order_by: {cited_article_id: asc}) {
|
|
|
|
description
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|