graphql-engine/server/tests-py/queries/graphql_query/relay/basic/only_pageinfo.yaml
Rakesh Emmadi 2fe353a294
allow array relation connection fields regardless of aggregation permission & change relay endpoint to '/v1beta1/relay' (fix #5218) (#5257)
* 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>
2020-07-03 12:00:35 +05:30

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