graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.DDL.Headers

Synopsis

Documentation

data HeaderConf Source #

Instances

Instances details
Eq HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Show HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Generic HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Associated Types

type Rep HeaderConf :: Type -> Type #

NFData HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Methods

rnf :: HeaderConf -> () #

Hashable HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

FromJSON HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Methods

parseJSON :: Value -> Parser HeaderConf

parseJSONList :: Value -> Parser [HeaderConf]

ToJSON HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Methods

toJSON :: HeaderConf -> Value

toEncoding :: HeaderConf -> Encoding

toJSONList :: [HeaderConf] -> Value

toEncodingList :: [HeaderConf] -> Encoding

Cacheable HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

type Rep HeaderConf Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

type HeaderName = Text Source #

data HeaderValue Source #

Constructors

HVValue Text 
HVEnv Text 

Instances

Instances details
Eq HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Show HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Generic HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Associated Types

type Rep HeaderValue :: Type -> Type #

NFData HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Methods

rnf :: HeaderValue -> () #

Hashable HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

Cacheable HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

type Rep HeaderValue Source # 
Instance details

Defined in Hasura.RQL.DDL.Headers

type Rep HeaderValue = D1 ('MetaData "HeaderValue" "Hasura.RQL.DDL.Headers" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "HVValue" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "HVEnv" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

makeHeadersFromConf :: MonadError QErr m => Environment -> [HeaderConf] -> m [Header] Source #

Resolve configuration headers

toHeadersConf :: [Header] -> [HeaderConf] Source #

Encode headers to HeaderConf