graphql-engine/server/tests-py/queries/graphql_query/bigquery/exact_article_id.yaml
Chris Done 53fc5617cf Feature/bigquery python tests
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com>
GitOrigin-RevId: c425f84f1c9b8e38ebbfa509b6fa9298e023f386
2021-04-22 11:32:55 +00:00

40 lines
701 B
YAML

- description: Cannot see other articles
url: /v1/graphql
status: 200
headers:
X-Hasura-Role: exact_article_id
response:
data:
hasura_article: []
query:
query: |
query {
hasura_article (
where: { id: {_eq: 1}}
) {
id
title
content
}
}
- description: Can only see exact article id
url: /v1/graphql
status: 200
headers:
X-Hasura-Role: exact_article_id
response:
data:
hasura_article:
- id: '2'
title: Title 2
content: Content 2
query:
query: |
query {
hasura_article {
id
title
content
}
}