graphql-python / graphql-python/graphql-core

Allow passing rules directly into the graphql function

未關閉
#70 1 則留言 0 個 reaction 已指派 1 人 已被 @Cito 認領 在 GitHub 檢視
pending upstream
主要語言
Python
星號
531
分支
146
PR 合併指標
30 天內沒有已合併 PR

描述

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?

貢獻指南

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

評估

這個 Issue 還沒有評估資料。

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

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