Metadata-Version: 2.1
Name: graphql-limits
Version: 0.1.1
Summary: Graphql backend that assists you in securing your GraphQL API against malicious queries
Home-page: https://github.com/shafa-dev/graphql-limits
Author: Bogdan Zaseka
Author-email: zaseka.bogdan@gmail.com
License: MIT
Description: 
        # graphql-limits
        
        Features included: 
        - Limit Query Depth
        - [Limit Query Nodes](https://docs.github.com/en/graphql/overview/resource-limitations)
        
        ### Prerequisites 
        
        - [graphql-core](https://github.com/graphql-python/graphql-core) 
        
        
        ### Installation 
        
        -  `pip install graphql-limits` 
        
        
        ### Usage example 
        
        ```python
        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})
        ```
            
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
