镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Graphene 3 dataloader #1273

Closed
Closed

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.

Activity

  1. KingDarBoja commented on Oct 26, 2020

    @KingDarBoja

    Related to graphql-python/graphql-server#66 as well 🚀

  2. jkimbo commented on Oct 27, 2020

    @jkimbo
    Member

    @wakemaster39 docs have been updated here: #1190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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