graphql-engine/server/tests-py/queries/graphql_introspection/disable_introspection/setup.yaml
Karthikeyan Chinnakonda 4702ba514a pro server: disable GraphQL schema introspection for specified roles
GitOrigin-RevId: 36ceb1852bc7779092cfb59c92035dd9635b2e3f
2021-05-05 12:26:23 +00:00

30 lines
504 B
YAML

type: bulk
args:
- type: pg_track_table
args:
table: authors
- type: pg_create_select_permission
args:
table: authors
role: introspection_disabled
permission:
columns:
- name
filter: {}
- type: pg_create_select_permission
args:
table: authors
role: introspection_not_diabled
permission:
columns:
- name
filter: {}
- type: set_graphql_schema_introspection_options
args:
disabled_for_roles:
- introspection_disabled