graphql-engine/server/test/testcases/create_author_article_relationship.yaml

21 lines
423 B
YAML
Raw Normal View History

description: Creates relationships
url: /v1/query
status: 200
query:
2018-07-20 11:19:06 +03:00
type: bulk
args:
2018-07-20 11:19:06 +03:00
- type: create_object_relationship
args:
table: article
name: author
using:
foreign_key_constraint_on: author_id
- type: create_array_relationship
args:
table: author
name: articles
using:
foreign_key_constraint_on:
table: article
column: author_id