graphql-engine/server/testcases/drop_table.json

27 lines
618 B
JSON
Raw Normal View History

2018-06-27 16:11:32 +03:00
{
"description": "drop test",
"depends": [
"permission.json"
],
"items": [
{
"name": "drop article no cascade",
"url": "/api/1/query",
"role": "admin",
"status_code": 400,
"method": "POST",
"user_id": "1",
"response": {
"path": "$",
"error": "can not delete due to the following dependent objects - [(\"author\",relationship,\"articles\"),(\"category\",relationship,\"articles\")]"
},
"request": {
"kind": "drop_table",
"body": {
"table": "article",
"cascade": false
}
}
}
]
}