graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.RQL.DDL.Permission.Internal

Synopsis

Documentation

interpColSpec :: [Column b] -> PermColSpec b -> [Column b] Source #

Intrepet a PermColSpec column specification, which can either refer to a list of named columns or all columns.

assertPermDefined :: (Backend backend, MonadError QErr m) => RoleName -> PermType -> TableInfo backend -> m () Source #

newtype CreatePerm a b Source #

Constructors

CreatePerm (WithTable b (PermDef b a)) 

Instances

Instances details
(Backend b, FromJSON (PermDef b a)) => FromJSON (CreatePerm a b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Permission.Internal

Methods

parseJSON :: Value -> Parser (CreatePerm a b)

parseJSONList :: Value -> Parser [CreatePerm a b]

getDepHeadersFromVal :: Value -> [Text] Source #

getDependentHeaders :: BoolExp b -> HashSet Text Source #

data DropPerm b Source #

Constructors

DropPerm 

Instances

Instances details
Backend b => FromJSON (DropPerm b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Permission.Internal

Methods

parseJSON :: Value -> Parser (DropPerm b)

parseJSONList :: Value -> Parser [DropPerm b]