mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
5bc0355bdd
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
60 lines
962 B
YAML
60 lines
962 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
|
|
);
|
|
insert into profiles (name) values
|
|
( 'alice' ),
|
|
( 'bob' ),
|
|
( 'alice');
|
|
create table authors (
|
|
id serial primary key,
|
|
name text
|
|
);
|
|
create table employees (
|
|
id serial primary key,
|
|
name text
|
|
);
|
|
insert into employees (name) values ('alice'),(NULL),('bob');
|
|
|
|
- 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
|
|
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: authors
|
|
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: employees
|