graphql-engine/server/tests-py/queries/remote_schemas/permissions/unknown_role_execution.yaml
Karthikeyan Chinnakonda 39a4352569 Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions
server: remote schema permissions
GitOrigin-RevId: 63b9717e30351676c9474bdfddd3ad1ee1409eea
2020-12-21 09:12:35 +00:00

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'"