graphql-engine/server/tests-py/queries/graphql_mutation/insert/ifmatched/setup_mssql.yaml
Gil Mizrahi a5f2161e1c server/mssql: upsert - sql generation and execution
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3207
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
GitOrigin-RevId: 92a4aa3cf802bc76858c4be4273a2f6a7d4aa395
2021-12-31 10:56:58 +00:00

51 lines
808 B
YAML

type: bulk
args:
# Author table
- type: mssql_track_table
args:
source: mssql
table:
name: author
# Article table
- type: mssql_track_table
args:
source: mssql
table:
name: article
# Person table
- type: mssql_track_table
args:
source: mssql
table:
name: person
# Order table
- type: mssql_track_table
args:
source: mssql
table:
name: orders
# Object relationship
- type: mssql_create_object_relationship
args:
source: mssql
table: article
name: author
using:
foreign_key_constraint_on: author_id
# Array relationship
- type: mssql_create_array_relationship
args:
source: mssql
table: author
name: articles
using:
foreign_key_constraint_on:
table: article
column: author_id