```
relay.Node.get_node_from_global_id(info, g_id) for g_id in global_id
File "/home/jm/pycharm_projects/propertymeld/venv_3_10_7/lib/python3.10/site-packages/graphene/relay/node.py", line 98, in get_node_from_global_id
graphene_type = info.schema.get_type(_type)
File "/home/jm/pycharm_projects/propertymeld/venv_3_10_7/lib/python3.10/site-packages/graphene/types/schema.py", line 451, in __getattr__
if isinstance(_type, GrapheneGraphQLType):
AttributeError: Type "get_type" not found in the Schema
```
graphene==3.1.1
python 3.10.7
* Vendor DataLoader from aiodataloader and also move get_event_loop behavior from `__init__` to a property which only gets resolved when actually needed (this will solve PyTest-related to early get_event_loop() issues)
* Added DataLoader's specific tests
* plug `loop` parameter into `self._loop`, so that we still have the ability to pass in a custom event loop, if needed.
Co-authored-by: Erik Wrede <erikwrede2@gmail.com>
Providing an invalid value to an input type will now provoke an exception.
For example if the input as the type `UUID` and that you provide the value `2` it will now fail.
assert bar_graphql_type.interfaces == [foo_graphql_type] failed only on tox, because .interfaces was a tuple instead of a list. Error didn't occur using just pytest. Fixed by explicitly
converting both to list.
There are small typos in:
- UPGRADE-v1.0.md
- UPGRADE-v2.0.md
- docs/execution/fileuploading.rst
Fixes:
- Should read `standard` rather than `stantard`.
- Should read `library` rather than `libary`.
- Should read `explicitly` rather than `explicity`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
This is to match the `graphql-core` API. If it's not respected
the `parse_literal` method will produce an error event though
dealing with a valid value.
When I first read through the documentation twice, it took me two tries and looking very hard to find out the difference b/w the two. The background highlight using backticks would be helpful in this case.