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

Hasura.GraphQL.Context

Synopsis

Documentation

data RoleContext a Source #

For storing both a normal GQLContext and one for the backend variant. Currently, this is to enable the backend variant to have certain insertupdatedelete permissions which the frontend variant does not.

Constructors

RoleContext 

Fields

Instances

Instances details
Foldable RoleContext Source # 
Instance details

Defined in Hasura.GraphQL.Context

Methods

fold :: Monoid m => RoleContext m -> m #

foldMap :: Monoid m => (a -> m) -> RoleContext a -> m #

foldMap' :: Monoid m => (a -> m) -> RoleContext a -> m #

foldr :: (a -> b -> b) -> b -> RoleContext a -> b #

foldr' :: (a -> b -> b) -> b -> RoleContext a -> b #

foldl :: (b -> a -> b) -> b -> RoleContext a -> b #

foldl' :: (b -> a -> b) -> b -> RoleContext a -> b #

foldr1 :: (a -> a -> a) -> RoleContext a -> a #

foldl1 :: (a -> a -> a) -> RoleContext a -> a #

toList :: RoleContext a -> [a] #

null :: RoleContext a -> Bool #

length :: RoleContext a -> Int #

elem :: Eq a => a -> RoleContext a -> Bool #

maximum :: Ord a => RoleContext a -> a #

minimum :: Ord a => RoleContext a -> a #

sum :: Num a => RoleContext a -> a #

product :: Num a => RoleContext a -> a #

Traversable RoleContext Source # 
Instance details

Defined in Hasura.GraphQL.Context

Methods

traverse :: Applicative f => (a -> f b) -> RoleContext a -> f (RoleContext b) #

sequenceA :: Applicative f => RoleContext (f a) -> f (RoleContext a) #

mapM :: Monad m => (a -> m b) -> RoleContext a -> m (RoleContext b) #

sequence :: Monad m => RoleContext (m a) -> m (RoleContext a) #

Functor RoleContext Source # 
Instance details

Defined in Hasura.GraphQL.Context

Methods

fmap :: (a -> b) -> RoleContext a -> RoleContext b #

(<$) :: a -> RoleContext b -> RoleContext a #

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

Defined in Hasura.GraphQL.Context

Generic (RoleContext a) Source # 
Instance details

Defined in Hasura.GraphQL.Context

Associated Types

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

Methods

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

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

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

Defined in Hasura.GraphQL.Context

Eq a => Eq (RoleContext a) Source # 
Instance details

Defined in Hasura.GraphQL.Context

type Rep (RoleContext a) Source # 
Instance details

Defined in Hasura.GraphQL.Context

type Rep (RoleContext a) = D1 ('MetaData "RoleContext" "Hasura.GraphQL.Context" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RoleContext" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rctxDefault") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "_rctxBackend") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe a))))