mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
c14dcd5792
* 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
35 lines
574 B
YAML
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
|