graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Session

Synopsis

Documentation

newtype SessionVariable Source #

Constructors

SessionVariable 

Instances

Instances details
FromJSON SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

FromJSONKey SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToJSON SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToJSONKey SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Data SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Methods

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

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

toConstr :: SessionVariable -> Constr #

dataTypeOf :: SessionVariable -> DataType #

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

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

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

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

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

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

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

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

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

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

IsString SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Show SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

NFData SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Methods

rnf :: SessionVariable -> () #

Eq SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Ord SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Hashable SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToTxt SessionVariable Source # 
Instance details

Defined in Hasura.RQL.Types.Session

newtype SessionVariables Source #

Instances

Instances details
FromJSON SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToJSON SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Monoid SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Semigroup SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Show SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Eq SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Hashable SessionVariables Source # 
Instance details

Defined in Hasura.RQL.Types.Session

data UserAdminSecret Source #

Represent the admin secret state; whether the secret is sent in the request or if actually authorization is not configured.

data BackendOnlyFieldAccess Source #

Represents the 'X-Hasura-Use-Backend-Only-Permissions' session variable and request made with 'X-Hasura-Admin-Secret' if any auth configured. For more details see Note [Backend only permissions]

Instances

Instances details
FromJSON BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToJSON BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Generic BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Associated Types

type Rep BackendOnlyFieldAccess :: Type -> Type #

Show BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Eq BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Hashable BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep BackendOnlyFieldAccess Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep BackendOnlyFieldAccess = D1 ('MetaData "BackendOnlyFieldAccess" "Hasura.RQL.Types.Session" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "BOFAAllowed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BOFADisallowed" 'PrefixI 'False) (U1 :: Type -> Type))

data UserInfo Source #

Instances

Instances details
FromJSON UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

ToJSON UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Generic UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Associated Types

type Rep UserInfo :: Type -> Type #

Methods

from :: UserInfo -> Rep UserInfo x #

to :: Rep UserInfo x -> UserInfo #

Show UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Eq UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Hashable UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep UserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep UserInfo = D1 ('MetaData "UserInfo" "Hasura.RQL.Types.Session" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "UserInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_uiRole") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RoleName) :*: (S1 ('MetaSel ('Just "_uiSession") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SessionVariables) :*: S1 ('MetaSel ('Just "_uiBackendOnlyFieldAccess") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BackendOnlyFieldAccess))))

class Monad m => UserInfoM m where Source #

Instances

Instances details
UserInfoM m => UserInfoM (CacheRWT m) Source # 
Instance details

Defined in Hasura.RQL.DDL.Schema.Cache

UserInfoM m => UserInfoM (MetadataT m) Source # 
Instance details

Defined in Hasura.RQL.Types.SchemaCache.Build

Monad m => UserInfoM (Handler m) Source # 
Instance details

Defined in Hasura.Server.App

UserInfoM m => UserInfoM (TraceT m) Source # 
Instance details

Defined in Hasura.Tracing.Monad

UserInfoM m => UserInfoM (TableCacheRT b m) Source # 
Instance details

Defined in Hasura.RQL.Types.SchemaCache

UserInfoM m => UserInfoM (ExceptT r m) Source # 
Instance details

Defined in Hasura.RQL.Types.Session

UserInfoM m => UserInfoM (ReaderT r m) Source # 
Instance details

Defined in Hasura.RQL.Types.Session

UserInfoM m => UserInfoM (StateT s m) Source # 
Instance details

Defined in Hasura.RQL.Types.Session

data ExtraUserInfo Source #

extra information used to identify a Hasura User

Constructors

ExtraUserInfo 

Fields

Instances

Instances details
Generic ExtraUserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Associated Types

type Rep ExtraUserInfo :: Type -> Type #

Show ExtraUserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Eq ExtraUserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep ExtraUserInfo Source # 
Instance details

Defined in Hasura.RQL.Types.Session

type Rep ExtraUserInfo = D1 ('MetaData "ExtraUserInfo" "Hasura.RQL.Types.Session" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ExtraUserInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_euiUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

data UserRoleBuild Source #

Represents how to build a role from the session variables

Constructors

URBFromSessionVariables

Look for `x-hasura-role` session variable value and absence will raise an exception

URBFromSessionVariablesFallback !RoleName

Look for `x-hasura-role` session variable value, if absent fall back to given role

URBPreDetermined !RoleName

Use only the pre-determined role

Instances

Instances details
Show UserRoleBuild Source # 
Instance details

Defined in Hasura.RQL.Types.Session

Eq UserRoleBuild Source # 
Instance details

Defined in Hasura.RQL.Types.Session