I am trying to import several libraries:
from ariadne import load_schema_from_path, make_executable_schema, \
graphql_sync, snake_case_fallback_resolvers, ObjectType
But when running this I get this Error:
ModuleNotFoundError: No module named 'graphql.pyutils.undefined'
Before that I downgraded to a lower graphql-core version by using pip install "graphql-core<3.1"
because I got this ImportError:
ImportError: cannot import name 'PLAYGROUND_HTML' from 'ariadne.constants'
What can I do to solve this?
Checking the source code of Ariadne v.
0.19.1
, thePLAYGROUND_HTML
seems to be supposed to be used via anExplorerPlayground
class.Try something like this: