graphql-python / graphql-python/graphql-core

Allow passing rules directly into the graphql function

Đang mở
#70 1 bình luận 0 reaction 1 người được giao Được @Cito nhận Xem trên GitHub
pending upstream
Ngôn ngữ chính
Python
Star
531
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I wanted to add some custom validation rules in addition to the default `graphql.specified_rules`. Unless I'm mistaken, the only way to do so is to manually call `validate` with the new rules, which means that I basically have to duplicate all the code inside of `async def graphql`, and change the validation step in order to pass in my custom rules. Is it possible instead to just allow clients to pass the rules they want to use into the top-level `graphql` call?

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.