graphql-engine/server/test/testcases/create_address_resident_relationship_error.yaml
Rakesh Emmadi c94640a377 don't allow creating relationships from/to a table that isn't tracked (fix #185) (#229)
* 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
2018-08-03 15:04:37 +05:30

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