graphql-engine/server/tests-py/queries/v1/update/permissions/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

46 lines
905 B
YAML

type: bulk
args:
- type: run_sql
args:
sql: |
INSERT INTO resident (name, age, city)
VALUES ('phillips', 25, 'canberra')
, ('george', 26, 'sydney')
, ('clarke', 21, 'perth')
;
- type: insert
args:
table: author
objects:
- id: 1
name: Author 1
- id: 2
name: Author 2
#Insert aticle table data
- type: insert
args:
table: article
objects:
- id: 1
version: 1.0.0
content: Sample article 1, content version 1.0.0
title: Article 1
author_id: 1
is_published: true
- id: 2
content: Sample article 1, content version 1.0.1
version: 1.0.1
title: Article 1
author_id: 1
is_published: false
- id: 3
content: Sample article 2, content version 1.0.2
version: 1.0.0
title: Article 2
author_id: 2
is_published: false