mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 21:41:44 +03:00
43 lines
613 B
YAML
43 lines
613 B
YAML
|
type: bulk
|
||
|
args:
|
||
|
|
||
|
# To model this:
|
||
|
|
||
|
# query {
|
||
|
# profiles {
|
||
|
# id
|
||
|
# message {
|
||
|
# id
|
||
|
# msg
|
||
|
# }
|
||
|
# }
|
||
|
# }
|
||
|
|
||
|
#Profile table
|
||
|
- type: run_sql
|
||
|
args:
|
||
|
sql: |
|
||
|
create table profiles (
|
||
|
id serial primary key,
|
||
|
name text
|
||
|
);
|
||
|
- type: run_sql
|
||
|
args:
|
||
|
sql: |
|
||
|
insert into profiles (name) values
|
||
|
( 'alice' ),
|
||
|
( 'bob' ),
|
||
|
( 'alice')
|
||
|
- type: track_table
|
||
|
args:
|
||
|
schema: public
|
||
|
name: profiles
|
||
|
|
||
|
- type: add_remote_schema
|
||
|
args:
|
||
|
name: my-remote-schema
|
||
|
definition:
|
||
|
url: http://localhost:4000
|
||
|
forward_client_headers: false
|
||
|
|