mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 07:52:14 +03:00
21 lines
458 B
YAML
21 lines
458 B
YAML
|
description: When remote schema permissions are enabled, it should not be accesible to unknown roles
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
headers:
|
||
|
X-Hasura-Role: unknown_role
|
||
|
query:
|
||
|
query: |
|
||
|
{
|
||
|
messages(where: {id: {eq: 1}}) {
|
||
|
id
|
||
|
name
|
||
|
msg
|
||
|
}
|
||
|
}
|
||
|
response:
|
||
|
errors:
|
||
|
- extensions:
|
||
|
path: $.selectionSet.messages
|
||
|
code: validation-failed
|
||
|
message: "field \"messages\" not found in type: 'query_root'"
|