2021-04-22 14:31:54 +03:00
|
|
|
- description: Cannot see unpublished articles
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
headers:
|
|
|
|
X-Hasura-Role: published_only
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article: []
|
2021-04-22 14:31:54 +03:00
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article (
|
2021-04-22 14:31:54 +03:00
|
|
|
where: { is_published: {_eq: false}}
|
|
|
|
) {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
is_published
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- description: Can only see published articles
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
headers:
|
|
|
|
X-Hasura-Role: published_only
|
|
|
|
response:
|
|
|
|
data:
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article:
|
2021-04-22 14:31:54 +03:00
|
|
|
- id: '2'
|
|
|
|
title: Title 2
|
|
|
|
is_published: true
|
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
2022-02-14 09:22:11 +03:00
|
|
|
hasura_article {
|
2021-04-22 14:31:54 +03:00
|
|
|
id
|
|
|
|
title
|
|
|
|
is_published
|
|
|
|
}
|
|
|
|
}
|