graphql-engine/server/tests-py/queries/graphql_mutation/custom_schema/values_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

27 lines
470 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
-- insert data
INSERT INTO author (name)
VALUES ('Author 1'), ('Author 2')
;
INSERT INTO article (title, content, author_id)
VALUES
( 'Article 1'
, 'Content for Article 1'
, 1
),
( 'Article 2'
, 'Content for Article 2'
, 1
),
( 'Article 3'
, 'Content for Article 3'
, 2
)
;