mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
a9e3a1b4bd
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2495 GitOrigin-RevId: ef250a0796200be6b75363b4275eb8a7ae780154
40 lines
721 B
YAML
40 lines
721 B
YAML
- description: Cannot see other articles
|
|
url: /v1/graphql
|
|
status: 200
|
|
headers:
|
|
X-Hasura-Role: exact_article_id
|
|
response:
|
|
data:
|
|
hasura_test_article: []
|
|
query:
|
|
query: |
|
|
query {
|
|
hasura_test_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_test_article:
|
|
- id: '2'
|
|
title: Title 2
|
|
content: Content 2
|
|
query:
|
|
query: |
|
|
query {
|
|
hasura_test_article {
|
|
id
|
|
title
|
|
content
|
|
}
|
|
}
|