Skip to content

Co-routine support in directives. #305

@alacoste

Description

@alacoste

First of all thanks for the great library, it has been working amazing for us so far!

We were happily surprised when graphql-java-kickstart worked immediately with suspend resolvers. We would now like to use GraphQL directives and are hoping there is similar support for it, however I couldn't find the way to make it work. I also didn't find the equivalent of #104 for suspending directives.

Is our use case already supported?

Reasons we would like to make the directive logic suspending: we want to use directives for authorization and would like to make on-the-fly database calls when we need to validate permissions in the directive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions