graphql-client-1.1.0: A client for Haskell programs to query a GraphQL API

MaintainerBrandon Chinn <brandon@leapyear.io>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.GraphQL.Query

Description

Definitions needed by GraphQL queries.

Synopsis

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`.

Associated Types

type ResultSchema query :: Schema Source #

Methods

getQueryName :: query -> Text Source #

getQueryText :: query -> Text Source #

getArgs :: query -> Value Source #

query :: QuasiQuoter Source #

A quasiquoter that interpolates the given string as raw text.

Trying to avoid a dependency on raw-strings-qq