graphql-engine/server/testcases/drop_table.json
2018-06-28 00:32:00 +05:30

27 lines
618 B
JSON

{
"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
}
}
}
]
}