mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-30 19:06:41 +03:00
5bc0355bdd
GitOrigin-RevId: abd7303aaf8e7a8739fd10574249aec450082ef8
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
type: bulk
|
|
args:
|
|
|
|
#Insert Author table data
|
|
- 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
|
|
|
|
#Resident table
|
|
|
|
#Insert Author table data
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
INSERT INTO resident (name, age, city)
|
|
VALUES ('phillips', 25, 'canberra')
|
|
, ('george', 26, 'sydney')
|
|
, ('clarke', 21, 'perth')
|
|
;
|
|
insert into "user" (name, is_admin)
|
|
values ('user_1', false), ('user_2', true)
|
|
;
|
|
insert into account (account_no) values (1), (2) ;
|
|
|