graphql-engine/server/tests-py/queries/graphql_query/bigquery/global_limit.yaml
Chris Done 6dc555f9eb Bigquery/global limit
This resolves https://github.com/hasura/graphql-engine/issues/6947.

A new [`global_select_limit`](b0ab5deefe/server/tests-py/queries/graphql_query/bigquery/replace_metadata.yaml (L17)) field is supported in the BigQuery configuration.

To test global limits, we have two sources defined,  the normal one (limited to 1million) and one with a limit of 1.

https://github.com/hasura/graphql-engine-mono/pull/1592

GitOrigin-RevId: 6ebcc7c1a16bc26ec36e53ae3694d36b7ce5c6e1
2021-06-25 13:36:35 +00:00

29 lines
670 B
YAML

- description: Check that global limits apply
url: /v1/graphql
status: 200
response:
data:
hasura_LimitedAlbum:
- album_self_id: '2000'
query:
query: |
query MyQuery {hasura_LimitedAlbum(limit: 5, order_by: {album_self_id: asc}) {album_self_id}}
- description: Check that global limits apply for nodes
url: /v1/graphql
status: 200
response:
data:
hasura_LimitedAlbum_aggregate:
nodes:
- album_self_id: '2000'
query:
query: |
query MyQuery {
hasura_LimitedAlbum_aggregate(order_by: {album_self_id: asc}) {
nodes {
album_self_id
}
}
}