graphql-engine/server/tests-py/queries/graphql_query/bigquery/exact_article_id.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
701 B
YAML
Raw Normal View History

- 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
}
}