graphql-engine/server/tests-py/queries/graphql_mutation/delete/constraints/setup_mssql.yaml
Gil Mizrahi 0e65932355 server/mssql support delete mutations (close hasura/graphql-engine#7626)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2691
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
GitOrigin-RevId: 8b66cc30e8e036ee56a5267c1d2f308155951ae9
2021-11-19 17:06:01 +00:00

37 lines
613 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
# 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