graphql-python / graphql-python/flask-graphql

Launch error 400

未关闭
#58 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.3k
派生
139
PR 合并指标
30 天内没有已合并 PR

描述

Hello,
I've been doing some flask and graphql practices. I made mutations, the proof of concept went well until I had to validate the data entry by the user.

Usually in api rest, I release a
`make_response(jsonify(error="my error"), 404) `
but with graphql I haven't found a way to launch a 400. All codes are 200.

Someone can explain to me a little more and how I could launch an error 400 when the user's input is not valid.

Thanks

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。