-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for validation rules #83
Conversation
(commited by mistake. updated .gitignore)
oops, committed venv by mistake. Updated .gitignore and removed the dir. |
@@ -75,6 +76,9 @@ def get_context(self, request): | |||
def get_middleware(self): | |||
return self.middleware | |||
|
|||
def get_validation_rules(self): | |||
return self.validation_rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return the default validation rules if validation_rules
is None
:
from graphql import specified_rules
When would this be merged?🤔 |
@codebyaryan I just merged #84 Could you bring this branch up to date? |
@jkimbo done! |
allows passing validation rules as an argument to the graphqlview.
also updated docs regarding the same. fixes #82