Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Flow 0.61.0 and graphql function #1177

Closed
lgraziani2712 opened this issue Dec 24, 2017 · 1 comment
Closed

Issue with Flow 0.61.0 and graphql function #1177

lgraziani2712 opened this issue Dec 24, 2017 · 1 comment

Comments

@lgraziani2712
Copy link

Description

When I'm trying to excecute graphql (I'm writting my first grapqhl test), Flow reports this error:

const { graphql } = require('graphql');

const result = await graphql(executableSchema, query, rootObj, context);
//                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with the expected param type of
declare function $await<T>(p: Promise<T> | T): T;
//                            ^^^^^^^^^^^^^^ union: `Promise` | `T`. See lib: C:\Users\~\AppData\Local\Temp\flow\flowlib_fe9353\core.js:613

I'm doing something wrong?

Extra information

  • Flow version: v0.61.0
  • graphql-js version: v0.12.3

Thank you!

@leebyron
Copy link
Contributor

leebyron commented Jan 8, 2018

Definitely strange! This library uses Flow 0.61 and has all tests passing right now, so it's possible something else is wrong. Can you include a full output of any Flow errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants