mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-22 15:01:39 +03:00
2fe353a294
* fix error when array relation connections are queried, fix #5218 * change relay endpoint to '/v1beta1/relay' * Update CHANGELOG.md Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
description: Query the article connection with only pageInfo
|
|
url: /v1beta1/relay
|
|
status: 200
|
|
query:
|
|
query: |
|
|
query {
|
|
article_connection(
|
|
order_by: {title: asc}
|
|
last: 2
|
|
){
|
|
pageInfo{
|
|
startCursor
|
|
endCursor
|
|
hasPreviousPage
|
|
hasNextPage
|
|
}
|
|
startCursor: pageInfo{
|
|
startCursor
|
|
}
|
|
endCursor: pageInfo{
|
|
endCursor
|
|
}
|
|
hasPreviousPage: pageInfo{
|
|
hasPreviousPage
|
|
}
|
|
hasNextPage: pageInfo{
|
|
hasNextPage
|
|
}
|
|
}
|
|
}
|
|
response:
|
|
data:
|
|
article_connection:
|
|
pageInfo:
|
|
startCursor: eyJ0aXRsZSIgOiAiQXJ0aWNsZSA1IiwgImlkIiA6IDV9
|
|
endCursor: eyJ0aXRsZSIgOiAiQXJ0aWNsZSA2IiwgImlkIiA6IDZ9
|
|
hasPreviousPage: true
|
|
hasNextPage: false
|
|
startCursor:
|
|
startCursor: eyJ0aXRsZSIgOiAiQXJ0aWNsZSA1IiwgImlkIiA6IDV9
|
|
endCursor:
|
|
endCursor: eyJ0aXRsZSIgOiAiQXJ0aWNsZSA2IiwgImlkIiA6IDZ9
|
|
hasPreviousPage:
|
|
hasPreviousPage: true
|
|
hasNextPage:
|
|
hasNextPage: false
|