mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 22:11:45 +03:00
35 lines
577 B
YAML
35 lines
577 B
YAML
|
type: bulk
|
||
|
args:
|
||
|
|
||
|
# track tables
|
||
|
- type: mssql_track_table
|
||
|
args:
|
||
|
source: mssql
|
||
|
table:
|
||
|
name: author
|
||
|
|
||
|
- type: mssql_track_table
|
||
|
args:
|
||
|
source: mssql
|
||
|
table:
|
||
|
name: article
|
||
|
|
||
|
# create relationships
|
||
|
- type: mssql_create_object_relationship
|
||
|
args:
|
||
|
source: mssql
|
||
|
table: article
|
||
|
name: author
|
||
|
using:
|
||
|
foreign_key_constraint_on: author_id
|
||
|
|
||
|
- type: mssql_create_array_relationship
|
||
|
args:
|
||
|
source: mssql
|
||
|
table: author
|
||
|
name: articles
|
||
|
using:
|
||
|
foreign_key_constraint_on:
|
||
|
table: article
|
||
|
column: author_id
|