graphql-python / graphql-python/flask-graphql

Launch error 400

Đang mở
#58 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.3k
Fork
139
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.