| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasura.GraphQL.Context
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.
Constructors
| RoleContext | |
Fields
| |
Instances
data GQLContext Source #
Constructors
| GQLContext | |
Instances
| ToJSON GQLContext Source # | |
Defined in Hasura.GraphQL.Context Methods toJSON :: GQLContext -> Value toEncoding :: GQLContext -> Encoding toJSONList :: [GQLContext] -> Value toEncodingList :: [GQLContext] -> Encoding | |