* Improve enum compatibility by supporting return enum as well as values and names
* Handle invalid enum values
* Rough implementation of compat middleware
* Move enum middleware into compat module
* Fix tests
* Tweak enum examples
* Add some tests for the middleware
* Clean up tests
* Add missing imports
* Remove enum compat middleware
* Use custom dedent function and pin graphql-core to >3.1.2
* Pass extra kwargs down the meta chain
* Rename name argument to allow custom name
* Reword error message
* Explicitly define kwargs
* Revert change to explicit kwargs
* name -> name_ for Enum __new__ function
* Revert "Update requirement for Query type in mutation docs (#1213)"
This reverts commit a9625dac0e.
* Add test to check that Query type must be defined
* Allow fast ObjectType creation based on dataclasses
* Fixed Python 3.8 integration
* Added repr and eq methods to ObjectType containers
* Reformatted code
* Fixed mypy issue
* Removed unused __init__ for ObjectType containers
* Use black in dataclasses
* Use latest black verison on precommit
The subclass polyfill was only needed for Python 2.7-3.5
Python 3.6 introduced the __init_subclass__, so since Graphene now requires Python 3.6+, this is no longer needed.
https://www.python.org/dev/peps/pep-0487/
* Added support for subscription
* Added pre-commit hooks for black and formatted changed files
* Checked with flake8
* Integrated changes from master.
Co-authored-by: Rob Blackbourn <rblackbourn@bhdgsystematic.com>
Co-authored-by: Rob Blackbourn <rtb@beast.jetblack.net>
* Add a helpful message to when a global_id fails to parse.
* Update test_node to have errors on test_node_query_incorrect_id
* Black the node.py file
* Remove func wrapper used in debugging get_resolver partial
* Update node.py
* Expand error messages
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
* The default_value of InputField should be INVALID
Since GraphQL 3.0 there is a distinction between None and INVALID (no value).
The tests captured the bug and are updated.
* Update minimum graphql-core version
* Use Undefined instead of INVALID
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>