mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-21 06:21:39 +03:00
58cf521c62
GitOrigin-RevId: 9d9bcb82a997c1f060df5ba0726c29d934e70d71
60 lines
1.0 KiB
YAML
60 lines
1.0 KiB
YAML
type: bulk
|
|
args:
|
|
|
|
#Insert Author table data
|
|
- type: insert
|
|
args:
|
|
table: author
|
|
objects:
|
|
- name: Author 1
|
|
- name: Author 2
|
|
|
|
#Insert aticle table data
|
|
- type: insert
|
|
args:
|
|
table: article
|
|
objects:
|
|
- content: Sample article content
|
|
title: Article 1
|
|
author_id: 1
|
|
- content: Sample article content
|
|
title: Article 2
|
|
author_id: 1
|
|
- content: Sample article content
|
|
title: Article 3
|
|
author_id: 2
|
|
|
|
|
|
#Create blog table
|
|
|
|
#Insert Author table data
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
INSERT INTO blog (id, title, author_id) VALUES
|
|
(1, 'first blog', 1), (2, 'second blog', 2);
|
|
insert into "user" (name, is_admin)
|
|
values ('user_1', false), ('user_2', true)
|
|
;
|
|
|
|
- type: insert
|
|
args:
|
|
table: resident
|
|
objects:
|
|
- id: 5
|
|
name: Resident 5
|
|
age: 21
|
|
- id: 6
|
|
name: Resident 6
|
|
age: 22
|
|
|
|
- type: insert
|
|
args:
|
|
table: items
|
|
objects:
|
|
- name: Apsara Pencil
|
|
quantity: 10
|
|
- name: Reynolds Trimax
|
|
quantity: 1323
|