graphql-engine/server/tests-py/queries/remote_schemas/remote_relationships/setup.yaml
Swann Moreau 5bc0355bdd [server] coalesce multiple run_sql calls in tests (#270)
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
2021-01-06 16:07:22 +00:00

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