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

Hasura.Server.Utils

Synopsis

Documentation

jsonHeader :: Header Source #

sqlHeader :: Header Source #

gzipHeader :: Header Source #

getRequestHeader :: HeaderName -> [Header] -> Maybe ByteString Source #

quoteRegex :: CompOption -> ExecOption -> String -> Q (TExp Regex) Source #

Quotes a regex using Template Haskell so syntax errors can be reported at compile-time.

fmapL :: (a -> a') -> Either a b -> Either a' b Source #

httpExceptToJSON :: HttpException -> Value Source #

mkClientHeadersForward :: [Header] -> [Header] Source #

mkSetCookieHeaders :: Response a -> ResponseHeaders Source #

filterRequestHeaders :: [Header] -> [Header] Source #

filterHeaders :: HashSet HeaderName -> [Header] -> [Header] Source #

data APIVersion Source #

The version integer

Constructors

VIVersion1 
VIVersion2 

Instances

Instances details
Eq APIVersion Source # 
Instance details

Defined in Hasura.Server.Utils

Show APIVersion Source # 
Instance details

Defined in Hasura.Server.Utils

FromJSON APIVersion Source # 
Instance details

Defined in Hasura.Server.Utils

Methods

parseJSON :: Value -> Parser APIVersion

parseJSONList :: Value -> Parser [APIVersion]

ToJSON APIVersion Source # 
Instance details

Defined in Hasura.Server.Utils

Methods

toJSON :: APIVersion -> Value

toEncoding :: APIVersion -> Encoding

toJSONList :: [APIVersion] -> Value

toEncodingList :: [APIVersion] -> Encoding

englishList :: Text -> NonEmpty Text -> Text Source #

makeReasonMessage :: [a] -> (a -> Text) -> Text Source #

executeJSONPath :: JSONPath -> Value -> IResult Value Source #

cryptoHash :: ToJSON a => a -> ByteString Source #

newtype EnvVarsMovedToMetadata Source #

The environment variables that were moved to metadata. These environment variables are available if a v1 hasura project is run an v2 hasura server. These environment variables are marked as deprecated only when the v1 hasura project is migrated to v2 project.

newtype DeprecatedEnvVars Source #

These env vars are completely deprecated

Constructors

DeprecatedEnvVars 

Instances

Instances details
Show DeprecatedEnvVars Source # 
Instance details

Defined in Hasura.Server.Utils

sensitiveHeaders :: HashSet HeaderName Source #

redactSensitiveHeader :: Header -> Header Source #