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

SchemaLink incorrectly expects an execution return value to be a Promise #351

@brabeji

Description

@brabeji

Hello! I think I've found a bug:

Intended outcome:
Being able to obtain synchronous result from SchemaLink

Actual outcome:
SchemaLink incorrectly expects graphql's execute to always returns a Promise. In case of synchronous execution an Error is thrown.

How to reproduce the issue:
https://codesandbox.io/s/jjmk3jwyl3

I think this may be consequence of incorrect graphql API Reference: graphql/graphql.github.io#439

Cheers and big thank you for this awesome library!

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