| Maintainer | Brandon Chinn <[email protected]> |
|---|---|
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.GraphQL.Query
Description
Definitions needed by GraphQL queries.
Synopsis
- class IsSchemaObject (ResultSchema query) => GraphQLQuery query where
- type ResultSchema query :: SchemaType
- getQueryName :: query -> Text
- getQueryText :: query -> Text
- getArgs :: query -> Value
- query :: QuasiQuoter
Documentation
class IsSchemaObject (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`.
Associated Types
type ResultSchema query :: SchemaType Source #
query :: QuasiQuoter Source #
A quasiquoter that interpolates the given string as raw text.
Trying to avoid a dependency on raw-strings-qq