haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Top level API #76

Closed jml closed 7 years ago

jml commented 7 years ago

As discussed, new functions in top-level GraphQL module:

These all have copious (but not necessarily good) documentation. Please check the Haddock documentation generated by Circle to confirm that it's readable in context.

I've deleted the filesystem example, as discussed. I've updated the other examples to refer to interpretAnonymousQuery, along with making some other changes to improve their documentation.

getOperation and SelectionSet are no longer exposed at the top-level.

TypeApiTests (which should really be renamed to ResolverTests) also got a bit of a tidy up. I'm not sure what the point of the custom monad is any more, but it's there anyway.

Fixes #60