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

Hasura.RQL.Types.Common

Synopsis

Documentation

newtype RelName Source #

Constructors

RelName 

Instances

Instances details
Eq RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Ord RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep RelName :: Type -> Type #

Methods

from :: RelName -> Rep RelName x #

to :: Rep RelName x -> RelName #

NFData RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: RelName -> () #

Hashable RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> RelName -> Int

hash :: RelName -> Int

FromJSONKey RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

fromJSONKey :: FromJSONKeyFunction RelName

fromJSONKeyList :: FromJSONKeyFunction [RelName]

FromJSON RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser RelName

parseJSONList :: Value -> Parser [RelName]

ToJSONKey RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSONKey :: ToJSONKeyFunction RelName

toJSONKeyList :: ToJSONKeyFunction [RelName]

ToJSON RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: RelName -> Value

toEncoding :: RelName -> Encoding

toJSONList :: [RelName] -> Value

toEncodingList :: [RelName] -> Encoding

ToTxt RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toTxt :: RelName -> Text Source #

FromCol RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

ToPrepArg RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toPrepVal :: RelName -> PrepArg

Cacheable RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

IsIdentifier RelName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

type Rep RelName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep RelName = D1 ('MetaData "RelName" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "RelName" 'PrefixI 'True) (S1 ('MetaSel ('Just "getRelTxt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NonEmptyText)))

data RelType Source #

Constructors

ObjRel 
ArrRel 

Instances

Instances details
Eq RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Data RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RelType -> c RelType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RelType #

toConstr :: RelType -> Constr #

dataTypeOf :: RelType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RelType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RelType) #

gmapT :: (forall b. Data b => b -> b) -> RelType -> RelType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RelType -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RelType -> r #

gmapQ :: (forall d. Data d => d -> u) -> RelType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RelType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RelType -> m RelType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RelType -> m RelType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RelType -> m RelType #

Show RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep RelType :: Type -> Type #

Methods

from :: RelType -> Rep RelType x #

to :: Rep RelType x -> RelType #

NFData RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: RelType -> () #

Hashable RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> RelType -> Int

hash :: RelType -> Int

FromJSON RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser RelType

parseJSONList :: Value -> Parser [RelType]

ToJSON RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: RelType -> Value

toEncoding :: RelType -> Encoding

toJSONList :: [RelType] -> Value

toEncodingList :: [RelType] -> Encoding

FromCol RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Cacheable RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep RelType Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep RelType = D1 ('MetaData "RelType" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ObjRel" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ArrRel" 'PrefixI 'False) (U1 :: Type -> Type))

data JsonAggSelect Source #

Instances

Instances details
Eq JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep JsonAggSelect :: Type -> Type #

Hashable JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

ToJSON JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: JsonAggSelect -> Value

toEncoding :: JsonAggSelect -> Encoding

toJSONList :: [JsonAggSelect] -> Value

toEncodingList :: [JsonAggSelect] -> Encoding

type Rep JsonAggSelect Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep JsonAggSelect = D1 ('MetaData "JsonAggSelect" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "JASMultipleRows" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "JASSingleObject" 'PrefixI 'False) (U1 :: Type -> Type))

data InsertOrder Source #

Constructors

BeforeParent 
AfterParent 

Instances

Instances details
Eq InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep InsertOrder :: Type -> Type #

NFData InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: InsertOrder -> () #

Hashable InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSON InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser InsertOrder

parseJSONList :: Value -> Parser [InsertOrder]

ToJSON InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: InsertOrder -> Value

toEncoding :: InsertOrder -> Encoding

toJSONList :: [InsertOrder] -> Value

toEncodingList :: [InsertOrder] -> Encoding

Cacheable InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InsertOrder Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InsertOrder = D1 ('MetaData "InsertOrder" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "BeforeParent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AfterParent" 'PrefixI 'False) (U1 :: Type -> Type))

newtype OID Source #

Constructors

OID 

Fields

Instances

Instances details
Eq OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Show OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

showsPrec :: Int -> OID -> ShowS #

show :: OID -> String #

showList :: [OID] -> ShowS #

NFData OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: OID -> () #

Hashable OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> OID -> Int

hash :: OID -> Int

FromJSON OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser OID

parseJSONList :: Value -> Parser [OID]

ToJSON OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: OID -> Value

toEncoding :: OID -> Encoding

toJSONList :: [OID] -> Value

toEncodingList :: [OID] -> Encoding

FromCol OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

fromCol :: Maybe ByteString -> Either Text OID

Cacheable OID Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

unchanged :: Accesses -> OID -> OID -> Bool Source #

newtype FieldName Source #

Constructors

FieldName 

Fields

Instances

Instances details
Eq FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Data FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FieldName -> c FieldName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FieldName #

toConstr :: FieldName -> Constr #

dataTypeOf :: FieldName -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FieldName) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FieldName) #

gmapT :: (forall b. Data b => b -> b) -> FieldName -> FieldName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FieldName -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FieldName -> r #

gmapQ :: (forall d. Data d => d -> u) -> FieldName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FieldName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FieldName -> m FieldName #

Ord FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

IsString FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep FieldName :: Type -> Type #

Semigroup FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

NFData FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: FieldName -> () #

Hashable FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSONKey FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

fromJSONKey :: FromJSONKeyFunction FieldName

fromJSONKeyList :: FromJSONKeyFunction [FieldName]

FromJSON FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser FieldName

parseJSONList :: Value -> Parser [FieldName]

ToJSONKey FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSONKey :: ToJSONKeyFunction FieldName

toJSONKeyList :: ToJSONKeyFunction [FieldName]

ToJSON FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: FieldName -> Value

toEncoding :: FieldName -> Encoding

toJSONList :: [FieldName] -> Value

toEncodingList :: [FieldName] -> Encoding

ToTxt FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toTxt :: FieldName -> Text Source #

Cacheable FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

IsIdentifier FieldName Source # 
Instance details

Defined in Hasura.Backends.Postgres.SQL.Types

type Rep FieldName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep FieldName = D1 ('MetaData "FieldName" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "FieldName" 'PrefixI 'True) (S1 ('MetaSel ('Just "getFieldNameTxt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

type Fields a = [(FieldName, a)] Source #

class ToAesonPairs a where Source #

Methods

toAesonPairs :: KeyValue v => a -> [v] Source #

Instances

Instances details
ToJSON a => ToAesonPairs (RelDef a) Source # 
Instance details

Defined in Hasura.RQL.Types.Relationships.Local

Methods

toAesonPairs :: KeyValue v => RelDef a -> [v] Source #

Backend b => ToAesonPairs (PermDef b perm) Source # 
Instance details

Defined in Hasura.RQL.Types.Permission

Methods

toAesonPairs :: KeyValue v => PermDef b perm -> [v] Source #

data SourceName Source #

Instances

Instances details
Eq SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Ord SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep SourceName :: Type -> Type #

NFData SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: SourceName -> () #

HasCodec SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

ToErrorValue SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Hashable SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSON SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser SourceName

parseJSONList :: Value -> Parser [SourceName]

ToJSONKey SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSONKey :: ToJSONKeyFunction SourceName

toJSONKeyList :: ToJSONKeyFunction [SourceName]

ToJSON SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: SourceName -> Value

toEncoding :: SourceName -> Encoding

toJSONList :: [SourceName] -> Value

toEncodingList :: [SourceName] -> Encoding

ToTxt SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toTxt :: SourceName -> Text Source #

Cacheable SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep SourceName Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep SourceName = D1 ('MetaData "SourceName" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SNDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SNName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NonEmptyText)))

data InpValInfo Source #

Constructors

InpValInfo 

Fields

Instances

Instances details
Eq InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep InpValInfo :: Type -> Type #

Cacheable InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Lift InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InpValInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InpValInfo = D1 ('MetaData "InpValInfo" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "InpValInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_iviDesc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Description)) :*: S1 ('MetaSel ('Just "_iviName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name)) :*: (S1 ('MetaSel ('Just "_iviDefVal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Value Void))) :*: S1 ('MetaSel ('Just "_iviType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GType))))

newtype SystemDefined Source #

Constructors

SystemDefined 

Instances

Instances details
Eq SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

NFData SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: SystemDefined -> () #

FromJSON SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser SystemDefined

parseJSONList :: Value -> Parser [SystemDefined]

ToJSON SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: SystemDefined -> Value

toEncoding :: SystemDefined -> Encoding

toJSONList :: [SystemDefined] -> Value

toEncodingList :: [SystemDefined] -> Encoding

ToPrepArg SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toPrepVal :: SystemDefined -> PrepArg

Cacheable SystemDefined Source # 
Instance details

Defined in Hasura.RQL.Types.Common

newtype ResolvedWebhook Source #

Constructors

ResolvedWebhook 

Fields

Instances

Instances details
Eq ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep ResolvedWebhook :: Type -> Type #

NFData ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: ResolvedWebhook -> () #

Hashable ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSON ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser ResolvedWebhook

parseJSONList :: Value -> Parser [ResolvedWebhook]

ToJSON ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: ResolvedWebhook -> Value

toEncoding :: ResolvedWebhook -> Encoding

toJSONList :: [ResolvedWebhook] -> Value

toEncodingList :: [ResolvedWebhook] -> Encoding

ToTxt ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toTxt :: ResolvedWebhook -> Text Source #

Cacheable ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ResolvedWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ResolvedWebhook = D1 ('MetaData "ResolvedWebhook" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ResolvedWebhook" 'PrefixI 'True) (S1 ('MetaSel ('Just "unResolvedWebhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype InputWebhook Source #

Constructors

InputWebhook 

Instances

Instances details
Eq InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep InputWebhook :: Type -> Type #

NFData InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: InputWebhook -> () #

Hashable InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSON InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser InputWebhook

parseJSONList :: Value -> Parser [InputWebhook]

ToJSON InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: InputWebhook -> Value

toEncoding :: InputWebhook -> Encoding

toJSONList :: [InputWebhook] -> Value

toEncodingList :: [InputWebhook] -> Encoding

FromCol InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Cacheable InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InputWebhook Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep InputWebhook = D1 ('MetaData "InputWebhook" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "InputWebhook" 'PrefixI 'True) (S1 ('MetaSel ('Just "unInputWebhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URLTemplate)))

newtype Timeout Source #

Constructors

Timeout 

Fields

Instances

Instances details
Eq Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Show Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep Timeout :: Type -> Type #

Methods

from :: Timeout -> Rep Timeout x #

to :: Rep Timeout x -> Timeout #

NFData Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: Timeout -> () #

FromJSON Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser Timeout

parseJSONList :: Value -> Parser [Timeout]

ToJSON Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: Timeout -> Value

toEncoding :: Timeout -> Encoding

toJSONList :: [Timeout] -> Value

toEncodingList :: [Timeout] -> Encoding

Cacheable Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep Timeout Source # 
Instance details

Defined in Hasura.RQL.Types.Common

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

data PGConnectionParams Source #

Constructors

PGConnectionParams 

Fields

Instances

Instances details
Eq PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep PGConnectionParams :: Type -> Type #

NFData PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: PGConnectionParams -> () #

Hashable PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

FromJSON PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser PGConnectionParams

parseJSONList :: Value -> Parser [PGConnectionParams]

ToJSON PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Cacheable PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep PGConnectionParams Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep PGConnectionParams = D1 ('MetaData "PGConnectionParams" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "PGConnectionParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_pgcpHost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_pgcpUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_pgcpPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "_pgcpPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_pgcpDatabase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

data UrlConf Source #

Constructors

UrlValue InputWebhook

the database connection string

UrlFromEnv Text

the name of environment variable containing the connection string

UrlFromParams PGConnectionParams

the minimum required `connection parameters` to construct a valid connection string

Instances

Instances details
Eq UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Show UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep UrlConf :: Type -> Type #

Methods

from :: UrlConf -> Rep UrlConf x #

to :: Rep UrlConf x -> UrlConf #

NFData UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: UrlConf -> () #

Hashable UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> UrlConf -> Int

hash :: UrlConf -> Int

FromJSON UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser UrlConf

parseJSONList :: Value -> Parser [UrlConf]

ToJSON UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: UrlConf -> Value

toEncoding :: UrlConf -> Encoding

toJSONList :: [UrlConf] -> Value

toEncodingList :: [UrlConf] -> Encoding

Cacheable UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep UrlConf Source # 
Instance details

Defined in Hasura.RQL.Types.Common

getPGConnectionStringFromParams :: PGConnectionParams -> String Source #

Construct a Postgres connection URI as a String from PGConnectionParams.

NOTE: This function takes care to properly escape all URI components, as Postgres requires that a connection URI is percent-encoded if it includes symbols with "special meaning".

See the libpq documentation for details: https://www.postgresql.org/docs/13/libpq-connect.html#id-1.7.3.8.3.6

getEnv :: QErrM m => Environment -> Text -> m Text Source #

data MetricsConfig Source #

Various user-controlled configuration for metrics used by Pro

Constructors

MetricsConfig 

Fields

Instances

Instances details
Eq MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep MetricsConfig :: Type -> Type #

FromJSON MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser MetricsConfig

parseJSONList :: Value -> Parser [MetricsConfig]

ToJSON MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: MetricsConfig -> Value

toEncoding :: MetricsConfig -> Encoding

toJSONList :: [MetricsConfig] -> Value

toEncodingList :: [MetricsConfig] -> Encoding

type Rep MetricsConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep MetricsConfig = D1 ('MetaData "MetricsConfig" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MetricsConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "_mcAnalyzeQueryVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "_mcAnalyzeResponseBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

data Comment Source #

Constructors

Automatic

Automatically generate a comment (derive it from DB comments, or a sensible default describing the source of the data)

Explicit (Maybe NonEmptyText)

The user's explicitly provided comment, or explicitly no comment (ie. leave it blank, do not autogenerate one)

Instances

Instances details
Eq Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

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

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

Show Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep Comment :: Type -> Type #

Methods

from :: Comment -> Rep Comment x #

to :: Rep Comment x -> Comment #

NFData Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: Comment -> () #

Hashable Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> Comment -> Int

hash :: Comment -> Int

FromJSON Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser Comment

parseJSONList :: Value -> Parser [Comment]

ToJSON Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: Comment -> Value

toEncoding :: Comment -> Encoding

toJSONList :: [Comment] -> Value

toEncodingList :: [Comment] -> Encoding

Cacheable Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep Comment Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep Comment = D1 ('MetaData "Comment" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Automatic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Explicit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NonEmptyText))))

data EnvRecord a Source #

We use the following type, after we resolve the env var. | This will store both the env var name and the resolved value.

Constructors

EnvRecord 

Fields

Instances

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

Defined in Hasura.RQL.Types.Common

Methods

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

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

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

Defined in Hasura.RQL.Types.Common

Generic (EnvRecord a) Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

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

Methods

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

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

NFData a => NFData (EnvRecord a) Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: EnvRecord a -> () #

Hashable a => Hashable (EnvRecord a) Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

hashWithSalt :: Int -> EnvRecord a -> Int

hash :: EnvRecord a -> Int

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

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser (EnvRecord a)

parseJSONList :: Value -> Parser [EnvRecord a]

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

Defined in Hasura.RQL.Types.Common

Methods

toJSON :: EnvRecord a -> Value

toEncoding :: EnvRecord a -> Encoding

toJSONList :: [EnvRecord a] -> Value

toEncodingList :: [EnvRecord a] -> Encoding

Cacheable a => Cacheable (EnvRecord a) Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep (EnvRecord a) Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep (EnvRecord a) = D1 ('MetaData "EnvRecord" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "EnvRecord" 'PrefixI 'True) (S1 ('MetaSel ('Just "_envVarName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_envVarValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)))

data ApolloFederationVersion Source #

Constructors

V1 

Instances

Instances details
Eq ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep ApolloFederationVersion :: Type -> Type #

NFData ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: ApolloFederationVersion -> () #

FromJSON ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser ApolloFederationVersion

parseJSONList :: Value -> Parser [ApolloFederationVersion]

ToJSON ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Cacheable ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ApolloFederationVersion Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ApolloFederationVersion = D1 ('MetaData "ApolloFederationVersion" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "V1" 'PrefixI 'False) (U1 :: Type -> Type))

data ApolloFederationConfig Source #

Instances

Instances details
Eq ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Show ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Generic ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Associated Types

type Rep ApolloFederationConfig :: Type -> Type #

NFData ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

rnf :: ApolloFederationConfig -> () #

FromJSON ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Methods

parseJSON :: Value -> Parser ApolloFederationConfig

parseJSONList :: Value -> Parser [ApolloFederationConfig]

ToJSON ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

Cacheable ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ApolloFederationConfig Source # 
Instance details

Defined in Hasura.RQL.Types.Common

type Rep ApolloFederationConfig = D1 ('MetaData "ApolloFederationConfig" "Hasura.RQL.Types.Common" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ApolloFederationConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApolloFederationVersion)))