graphql-engine/server/tests-py/queries/apollo_federation/setup.yaml
paritosh-08 95adde4ce2 server: support for Apollo federation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4584
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
GitOrigin-RevId: 0f60c263efb5fbaa25620dd8159e8cfda25a61b2
2022-07-25 15:54:41 +00:00

25 lines
534 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
CREATE TABLE "user"(
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
email TEXT NOT NULL,
is_admin BOOLEAN NOT NULL DEFAULT false
);
INSERT INTO "user" (id, name, email) VALUES
(1, 'foo', 'foo@email.com'),
(2, 'bar', 'bar@email.com'),
(3, 'bar', 'bar@email.com'),
(4, 'baz', 'baz@email.com');
- type: track_table
args:
table: user
schema: public
apollo_federation_config:
enable: v1