graphql-limits
Features included:
- Limit Query Depth
- Limit Query Nodes
Prerequisites
Installation
pip install graphql-limits
Usage example
query_string = '''
query Test($first: Int) {
viewer {
books(first: $first) {
author {
books(first: 4) {
author {
books(first: 100) {
author {
id
}
}
}
}
}
}
}
}
'''
schema = graphene.Schema(query=Query)
backend = ProtectorBackend(nodes_limit=399, depth_limit=5, variable_values={'first': 2})
result = schema.execute(query_string, backend=backend, variable_values={'first': 2})
Metadata
Release files for graphql-limits 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graphql-limits-0.1.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphql_limits-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.4 kB
Release files / graphql-limits-0.1.1.tar.gz
| Download URL | graphql-limits-0.1.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36c82b27af880395fbc514db2f11f51579e39d9309f6ff8f719b4e04be62986b
|
|
BLAKE2b-256 checksum How to use checksums |
4ad46d18ebae62b0a9a16e3e842837cb3cd3a7522c36359adfc7737d6e1a786e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Release files / graphql_limits-0.1.1-py2.py3-none-any.whl
| Download URL | graphql_limits-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1b39d7b9a56fd4a10cfbf845196f50c25fddd8ff5797e2897c44736928da2e70
|
|
BLAKE2b-256 checksum How to use checksums |
cadd2e1e06fdeb02d6d477da48f39a0fa0aae1aba18edcfb0d5b57155810a6c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|