mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 22:11:45 +03:00
39a4352569
server: remote schema permissions GitOrigin-RevId: 63b9717e30351676c9474bdfddd3ad1ee1409eea
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'"
|