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

Hasura.RQL.Types.Roles

Synopsis

Documentation

newtype ParentRoles Source #

Constructors

ParentRoles 

Fields

Instances

Instances details
Eq ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Show ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Generic ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Associated Types

type Rep ParentRoles :: Type -> Type #

Hashable ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

FromJSON ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

parseJSON :: Value -> Parser ParentRoles

parseJSONList :: Value -> Parser [ParentRoles]

ToJSON ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

toJSON :: ParentRoles -> Value

toEncoding :: ParentRoles -> Encoding

toJSONList :: [ParentRoles] -> Value

toEncodingList :: [ParentRoles] -> Encoding

Cacheable ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

type Rep ParentRoles Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

type Rep ParentRoles = D1 ('MetaData "ParentRoles" "Hasura.RQL.Types.Roles" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "ParentRoles" 'PrefixI 'True) (S1 ('MetaSel ('Just "_unParentRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashSet RoleName))))

data Role Source #

The Role type represents a role by containing its name and the names of its parent roles. This type is used externally in the add_inherited_role metadata API and is also used internally in the permission building part of the schema cache building process

Constructors

Role 

Fields

Instances

Instances details
Eq Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

(==) :: Role -> Role -> Bool #

(/=) :: Role -> Role -> Bool #

Show Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

showsPrec :: Int -> Role -> ShowS #

show :: Role -> String #

showList :: [Role] -> ShowS #

Generic Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Associated Types

type Rep Role :: Type -> Type #

Methods

from :: Role -> Rep Role x #

to :: Rep Role x -> Role #

Hashable Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

hashWithSalt :: Int -> Role -> Int

hash :: Role -> Int

FromJSON Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

parseJSON :: Value -> Parser Role

parseJSONList :: Value -> Parser [Role]

ToJSON Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

toJSON :: Role -> Value

toEncoding :: Role -> Encoding

toJSONList :: [Role] -> Value

toEncodingList :: [Role] -> Encoding

Cacheable Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

unchanged :: Accesses -> Role -> Role -> Bool Source #

type Rep Role Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

type Rep Role = D1 ('MetaData "Role" "Hasura.RQL.Types.Roles" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "Role" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rRoleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName) :*: S1 ('MetaSel ('Just "_rParentRoles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ParentRoles)))

newtype DropInheritedRole Source #

Constructors

DropInheritedRole 

Instances

Instances details
Eq DropInheritedRole Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Show DropInheritedRole Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

FromJSON DropInheritedRole Source # 
Instance details

Defined in Hasura.RQL.Types.Roles

Methods

parseJSON :: Value -> Parser DropInheritedRole

parseJSONList :: Value -> Parser [DropInheritedRole]

ToJSON DropInheritedRole Source # 
Instance details

Defined in Hasura.RQL.Types.Roles