Skip to content

Allow GraphQLType.serialize() and deserialize() to return futures #25

@tigloo

Description

@tigloo

The resolvers for GraphQLObject fields have a return value of FutureOr but GraphQLType.serialize() and deserialize() have a return type of T.

It would be great if GraphQLType could also work with futures.

Example use case: I would like to build a GraphQLExtendedUri type that automatically generates signed URLs to retrieve files from a CDN when being queried from the server.

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