apollographql / persistgraphql

A build tool for GraphQL projects.
MIT License
425 stars 57 forks source link

Strict null checks #31

Open ScallyGames opened 7 years ago

ScallyGames commented 7 years ago

Handle the case when no query document is passed (assuming an error should be thrown).

Also enabled strictNullChecks to ensure comptibility with this compiler flag.

Feel free to provide feeback if this is not the wanted behaviour.

Poincare commented 7 years ago

@stubailo Could you take a look at this when you have a bit of time? I can't review at the moment 👎

lemccarthy commented 7 years ago

I would greatly appreciate this being merged in, the error case is stopping me from being able to use this in my project.

clemens-tolboom commented 6 years ago

I added the mentioned lines into PR #63. Hope that was OK 😃