Update docs data-validations.mdx refs #2599

GITHUB_PR_NUMBER: 8529
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8529

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4560
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 475ffaf8d5d37869a59ea002b4861cd91baaa090
This commit is contained in:
hasura-bot 2023-01-21 02:38:21 +05:30
parent 61336d8a7f
commit ab8096c83d

View File

@ -200,7 +200,7 @@ BEGIN
-- throw an error if article content is too long
IF content_length > 100 THEN
RAISE EXCEPTION 'Content can not have more than 100 words';
RAISE EXCEPTION USING ERRCODE= '22000', MESSAGE= 'Content can not have more than 100 words';
END IF;
-- return the article row if no error
@ -232,16 +232,10 @@ Now, if we try to insert an article whose content has more than 100 words, we'll
{
"message": "postgres query error",
"extensions": {
"internal": {
"error": {
"exec_status": "FatalError",
"message": "Content can not have more than 100 words",
"status_code": "P0001",
},
},
"path": "$.selectionSet.insert_article.args.objects",
"code": "unexpected"
}
"path": "$",
"code": "data-exception"
},
"message": "Content can not have more than 100 words"
}
]
}`}