Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

How do resolvers get mapped? #7

Open
@pspierce

Description

@pspierce

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions