mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
5bc0355bdd
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
46 lines
905 B
YAML
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
|