Module

GraphQL.Client.Variables

Package
purescript-graphql-client
Repository
OxfordAbstracts/purescript-graphql-client

#GetVar Source

class GetVar :: forall k. Type -> k -> Constraintclass GetVar query var | query -> var where

Members

Instances

#VarsTypeChecked Source

class VarsTypeChecked query  where

Members

Instances

#GetVarRec Source

data GetVarRec

Get variables from a record, recursively

Instances

#WithVars Source

data WithVars :: forall k. Type -> k -> Typedata WithVars query vars

Instances

#getQuery Source

getQuery :: forall query vars. WithVars query vars -> query

#getQueryVars Source

getQueryVars :: forall query vars. GetVar query vars => query -> Proxy vars

#withVars Source

withVars :: forall query vars. HFoldlWithIndex VarTypeNameProps String (Record vars) String => HFoldl GetVarRec (Proxy (Record ())) query (Proxy (Record vars)) => EncodeJson (Record vars) => query -> Record vars -> WithVars query (Record vars)

Add variables to a query

#withVarsEncode Source

withVarsEncode :: forall query vars. HFoldlWithIndex VarTypeNameProps String (Record vars) String => HFoldl GetVarRec (Proxy (Record ())) query (Proxy (Record vars)) => (Record vars -> Json) -> query -> Record vars -> WithVars query (Record vars)

Add variables to a query with a custom encoder