Skip to content

Graphene 3 dataloader #1273

Closed
Closed
@wakemaster39

Description

@wakemaster39

Current documentation for graphene on both the released site and the master branch have the promise based dataloader as the recommended method of using dataloaders.

Since promise is no longer included in the graphene and there is no thenable resolution in the chain anymore, how can dataloaders be executed in a synchronous application like flask? I found https://github.com/syrusakbary/aiodataloader which provided an async/await dataloader interface but flask doesn't support it out of the box.

I have hacked in a loop.run_until_complete() when executing a graphql request to try and enable dataloaders again but this seems suspect and that I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions