Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Definitions needed by GraphQL queries.
Synopsis
- class IsSchema (ResultSchema query) => GraphQLQuery query where
- type ResultSchema query :: Schema
- getQueryName :: query -> Text
- getQueryText :: query -> Text
- getArgs :: query -> Value
- query :: QuasiQuoter
Documentation
class IsSchema (ResultSchema query) => GraphQLQuery query where Source #
A type class for defining GraphQL queries.
Should be generated via the `graphql-codegen` command. Any manual instances needs to be certain that `getArgs query` satisfies the arguments defined in `getQueryText query`, and that the result adheres to `ResultSchema query`.
type ResultSchema query :: Schema Source #
query :: QuasiQuoter Source #
A quasiquoter that interpolates the given string as raw text.
Trying to avoid a dependency on raw-strings-qq