graphql-engine/server/tests-py/queries/webhooks/request_context/setup.yaml
Swann Moreau c14dcd5792 pass gql requests into auth webhook POST body (#149)
* fix arg order in UserAuthentication instance [force ci]

* change the constructor name to AHGraphQLRequest

Co-authored-by: Stylish Haskell Bot <stylish-haskell@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <karthikeyan@hasura.io>
GitOrigin-RevId: fb3258f4a84efc6c730b0c6222ebd8cea1b91081
2021-02-03 07:11:39 +00:00

35 lines
574 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name TEXT
);
INSERT INTO users VALUES (1, 'alice');
INSERT INTO users VALUES (2, 'bob');
- type: track_table
args:
schema: public
name: users
- type: create_select_permission
args:
table: users
role: user
permission:
columns: '*'
filter:
id: X-Hasura-User-Id
- type: create_insert_permission
args:
table: users
role: user
permission:
check:
id: X-Hasura-User-Id