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

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

未指定任何檔案、測試或進入點。先檢視此 Flask GraphQL 整合如何處理驗證錯誤與 HTTP 回應,接著將該行為與預期的 GraphQL 回應模型進行比較。當針對無效輸入及其 HTTP 狀態形成有文件記錄且已達成共識的方法時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
flask, graphql, python
領域
api, backend
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
15/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。