mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
c94640a377
* don't allow fkey based relations from/to a table that isn't tracked, fix #185 Check if remote table exist in metadata when creating foreign-key based object relationship. * add tests for adding object relation using fkey if remote table is untracked
11 lines
292 B
YAML
11 lines
292 B
YAML
description: Create address to resident object relationship. But resident table is not tracked, so expecting a 400 error
|
|
url: /v1/query
|
|
status: 400
|
|
query:
|
|
type: create_object_relationship
|
|
args:
|
|
table: address
|
|
name: resident
|
|
using:
|
|
foreign_key_constraint_on: resident_id
|