graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
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

procLogicalModelBoolExp :: forall b m r. (QErrM m, TableCoreInfoRM b m, BackendMetadata b, GetAggregationPredicatesDeps b, MonadReader r m, Has (ScalarTypeParsingContext b) r) => SourceName -> LogicalModelName -> FieldInfoMap (FieldInfo b) -> BoolExp b -> m (AnnBoolExpPartialSQL b, Seq SchemaDependency) Source #

Interpret a BoolExp into an AnnBoolExp, collecting any dependencies as we go. At the moment, the only dependencies we're likely to encounter are independent dependencies on other tables. For example, "this user can only select from this logical model if their ID is in the allowed_users table".

data DropPerm b Source #

Constructors

DropPerm 

Instances

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

Defined in Hasura.RQL.DDL.Permission.Internal