mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 20:41:49 +03:00
53fc5617cf
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com> GitOrigin-RevId: c425f84f1c9b8e38ebbfa509b6fa9298e023f386
40 lines
701 B
YAML
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
|
|
}
|
|
}
|