You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
Using the example from the README, I get:
File "/app/tractionapp/traction/init.py", line 28, in
api_1 | schema = make_executable_schema(
api_1 | File "/usr/local/lib/python3.8/site-packages/ariadne/executable_schema.py", line 33, in make_executable_schema
api_1 | obj.bind_to_schema(schema)
api_1 | AttributeError: 'function' object has no attribute 'bind_to_schema'
I don't see how you are binding the resolver to the schema? Looking at the resolver code, you aren't using a decorator to do it or .set_field().
If I take out resolve_auth_token from make_executable_schema then at least the server will run but ariadne throws an error when you attempt to execute the mutation in playground because no token is returned as the resolver code is never run.
The text was updated successfully, but these errors were encountered:
Using the example from the README, I get:
File "/app/tractionapp/traction/init.py", line 28, in
api_1 | schema = make_executable_schema(
api_1 | File "/usr/local/lib/python3.8/site-packages/ariadne/executable_schema.py", line 33, in make_executable_schema
api_1 | obj.bind_to_schema(schema)
api_1 | AttributeError: 'function' object has no attribute 'bind_to_schema'
I don't see how you are binding the resolver to the schema? Looking at the resolver code, you aren't using a decorator to do it or .set_field().
If I take out resolve_auth_token from make_executable_schema then at least the server will run but ariadne throws an error when you attempt to execute the mutation in playground because no token is returned as the resolver code is never run.
The text was updated successfully, but these errors were encountered: