Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data RoleContext a = RoleContext {
- _rctxDefault :: !a
- _rctxBackend :: !(Maybe a)
- data GQLContext = GQLContext {}
- type ParserFn a = SelectionSet NoFragments Variable -> Either QErr a
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.
RoleContext | |
|
Instances
data GQLContext Source #
Instances
ToJSON GQLContext Source # | |
Defined in Hasura.GraphQL.Context toJSON :: GQLContext -> Value Source # toEncoding :: GQLContext -> Encoding Source # toJSONList :: [GQLContext] -> Value Source # toEncodingList :: [GQLContext] -> Encoding Source # |
type ParserFn a = SelectionSet NoFragments Variable -> Either QErr a Source #