graphql-engine/server/tests-py/queries/graphql_mutation/insert/permissions/values_setup.yaml
Karthikeyan Chinnakonda 58cf521c62 server: support relationship column comparison with root table columns
GitOrigin-RevId: 9d9bcb82a997c1f060df5ba0726c29d934e70d71
2021-04-19 12:17:07 +00:00

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