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

Hasura.RQL.Types.ApiLimit

Synopsis

Documentation

data ApiLimit Source #

Instances

Instances details
Eq ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep ApiLimit :: Type -> Type #

Methods

from :: ApiLimit -> Rep ApiLimit x #

to :: Rep ApiLimit x -> ApiLimit #

FromJSON ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser ApiLimit

parseJSONList :: Value -> Parser [ApiLimit]

ToJSON ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: ApiLimit -> Value

toEncoding :: ApiLimit -> Encoding

toJSONList :: [ApiLimit] -> Value

toEncodingList :: [ApiLimit] -> Encoding

type Rep ApiLimit Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

data Limit a Source #

Constructors

Limit 

Fields

Instances

Instances details
Eq a => Eq (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

(==) :: Limit a -> Limit a -> Bool #

(/=) :: Limit a -> Limit a -> Bool #

Show a => Show (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

showsPrec :: Int -> Limit a -> ShowS #

show :: Limit a -> String #

showList :: [Limit a] -> ShowS #

Generic (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep (Limit a) :: Type -> Type #

Methods

from :: Limit a -> Rep (Limit a) x #

to :: Rep (Limit a) x -> Limit a #

FromJSON a => FromJSON (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser (Limit a)

parseJSONList :: Value -> Parser [Limit a]

ToJSON a => ToJSON (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: Limit a -> Value

toEncoding :: Limit a -> Encoding

toJSONList :: [Limit a] -> Value

toEncodingList :: [Limit a] -> Encoding

type Rep (Limit a) Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep (Limit a) = D1 ('MetaData "Limit" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Limit" 'PrefixI 'True) (S1 ('MetaSel ('Just "_lGlobal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "_lPerRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (InsOrdHashMap RoleName a))))

data RateLimitConfig Source #

Instances

Instances details
Eq RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep RateLimitConfig :: Type -> Type #

FromJSON RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser RateLimitConfig

parseJSONList :: Value -> Parser [RateLimitConfig]

ToJSON RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: RateLimitConfig -> Value

toEncoding :: RateLimitConfig -> Encoding

toJSONList :: [RateLimitConfig] -> Value

toEncodingList :: [RateLimitConfig] -> Encoding

type Rep RateLimitConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep RateLimitConfig = D1 ('MetaData "RateLimitConfig" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RateLimitConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rlcMaxReqsPerMin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_rlcUniqueParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UniqueParamConfig))))

data UniqueParamConfig Source #

The unique key using which an authenticated client can be identified

Constructors

UPCSessionVar [Text]

it can be a list of session variable (like session var in UserInfo)

UPCIpAddress

or it can be an IP address

Instances

Instances details
Eq UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep UniqueParamConfig :: Type -> Type #

FromJSON UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser UniqueParamConfig

parseJSONList :: Value -> Parser [UniqueParamConfig]

ToJSON UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep UniqueParamConfig Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep UniqueParamConfig = D1 ('MetaData "UniqueParamConfig" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "UPCSessionVar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])) :+: C1 ('MetaCons "UPCIpAddress" 'PrefixI 'False) (U1 :: Type -> Type))

newtype MaxDepth Source #

Constructors

MaxDepth 

Fields

Instances

Instances details
Eq MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Ord MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep MaxDepth :: Type -> Type #

Methods

from :: MaxDepth -> Rep MaxDepth x #

to :: Rep MaxDepth x -> MaxDepth #

FromJSON MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser MaxDepth

parseJSONList :: Value -> Parser [MaxDepth]

ToJSON MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: MaxDepth -> Value

toEncoding :: MaxDepth -> Encoding

toJSONList :: [MaxDepth] -> Value

toEncodingList :: [MaxDepth] -> Encoding

type Rep MaxDepth Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep MaxDepth = D1 ('MetaData "MaxDepth" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "MaxDepth" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaxDepth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype MaxNodes Source #

Constructors

MaxNodes 

Fields

Instances

Instances details
Eq MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Ord MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep MaxNodes :: Type -> Type #

Methods

from :: MaxNodes -> Rep MaxNodes x #

to :: Rep MaxNodes x -> MaxNodes #

FromJSON MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser MaxNodes

parseJSONList :: Value -> Parser [MaxNodes]

ToJSON MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: MaxNodes -> Value

toEncoding :: MaxNodes -> Encoding

toJSONList :: [MaxNodes] -> Value

toEncodingList :: [MaxNodes] -> Encoding

type Rep MaxNodes Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep MaxNodes = D1 ('MetaData "MaxNodes" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "MaxNodes" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaxNodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype MaxTime Source #

Constructors

MaxTime 

Fields

Instances

Instances details
Eq MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

(==) :: MaxTime -> MaxTime -> Bool #

(/=) :: MaxTime -> MaxTime -> Bool #

Ord MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Show MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Generic MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Associated Types

type Rep MaxTime :: Type -> Type #

Methods

from :: MaxTime -> Rep MaxTime x #

to :: Rep MaxTime x -> MaxTime #

FromJSON MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

parseJSON :: Value -> Parser MaxTime

parseJSONList :: Value -> Parser [MaxTime]

ToJSON MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toJSON :: MaxTime -> Value

toEncoding :: MaxTime -> Encoding

toJSONList :: [MaxTime] -> Value

toEncodingList :: [MaxTime] -> Encoding

ToTxt MaxTime Source #

Defers to the (illegal) DiffTime Show instance.

>>> toTxt (MaxTime 2.5)
"2.5s"
Instance details

Defined in Hasura.RQL.Types.ApiLimit

Methods

toTxt :: MaxTime -> Text Source #

type Rep MaxTime Source # 
Instance details

Defined in Hasura.RQL.Types.ApiLimit

type Rep MaxTime = D1 ('MetaData "MaxTime" "Hasura.RQL.Types.ApiLimit" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "MaxTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMaxTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds)))