graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
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
Functor RoleContext Source # 
Instance details

Defined in Hasura.GraphQL.Context

Methods

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

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

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) #

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

Defined in Hasura.GraphQL.Context

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

Defined in Hasura.GraphQL.Context

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

Defined in Hasura.GraphQL.Context

Methods

toJSON :: RoleContext a -> Value

toEncoding :: RoleContext a -> Encoding

toJSONList :: [RoleContext a] -> Value

toEncodingList :: [RoleContext a] -> Encoding

type ParserFn a = SelectionSet NoFragments Variable -> Either QErr a Source #