Generate graphql schema.
Project description
graphene-django-precommit-hook
pre-commit hook to generate .graphql
| .json
graphql schema for graphene-django.
As a pre-commit hook
See pre-commit for instructions
Sample basic .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
Sample complex .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
args: [
'--settings',
'project.settings'. # Defaults to: DJANGO_SETTINGS_MODULE
'--indent',
'4' # See https://docs.graphene-python.org/projects/django/en/latest/introspection/
'--out',
'path/to/schema.graphql',
'--schema',
'module.path.to.schema',
'--verbosity', # OR '-v'
'2', # Set the verbosity level {0,1,2,3}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for graphene_django_hook-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175b6ccabe28b1c315b41c7903a43ede1fd4f2f5ddb60aabb494a9d6adf8a835 |
|
MD5 | 007a677ee71d754eda5584279271b5f3 |
|
BLAKE2b-256 | a842cc0a91b594a3cb0377bd5dbad50a017ffaab83d5dfb8a580e3c7f668db2f |
Close
Hashes for graphene_django_hook-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b61d153c139c1de3350cb5652f59dd7448f755286733c17dd6c446d229859b |
|
MD5 | f482c5676bc6e6a70f5befec76417250 |
|
BLAKE2b-256 | 6225471bb172048743783e129e1ee82fb4149c0f37dc40aae8714736f1836244 |