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

Hasura.RQL.DDL.Relationship

Synopsis

Documentation

newtype CreateArrRel b Source #

Constructors

CreateArrRel 

Instances

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

Defined in Hasura.RQL.DDL.Relationship

Methods

parseJSON :: Value -> Parser (CreateArrRel b)

parseJSONList :: Value -> Parser [CreateArrRel b]

newtype CreateObjRel b Source #

Constructors

CreateObjRel 

Instances

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

Defined in Hasura.RQL.DDL.Relationship

Methods

parseJSON :: Value -> Parser (CreateObjRel b)

parseJSONList :: Value -> Parser [CreateObjRel b]

objRelP2Setup :: forall b m. (QErrM m, Backend b) => SourceName -> TableName b -> HashMap (TableName b) (HashSet (ForeignKey b)) -> RelDef (ObjRelUsing b) -> m (RelInfo b, [SchemaDependency]) Source #

arrRelP2Setup :: forall b m. (QErrM m, Backend b) => HashMap (TableName b) (HashSet (ForeignKey b)) -> SourceName -> TableName b -> ArrRelDef b -> m (RelInfo b, [SchemaDependency]) Source #

mkFkeyRel :: forall b m. QErrM m => Backend b => RelType -> InsertOrder -> SourceName -> RelName -> TableName b -> TableName b -> NonEmpty (Column b) -> HashMap (TableName b) (HashSet (ForeignKey b)) -> m (RelInfo b, [SchemaDependency]) Source #

getRequiredFkey :: (QErrM m, Backend b) => NonEmpty (Column b) -> [ForeignKey b] -> m (ForeignKey b) Source #

Try to find a foreign key constraint, identifying a constraint by its set of columns

data DropRel b Source #

Instances

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

Defined in Hasura.RQL.DDL.Relationship

Methods

parseJSON :: Value -> Parser (DropRel b)

parseJSONList :: Value -> Parser [DropRel b]

purgeRelDep :: forall b m. QErrM m => Backend b => SchemaObjId -> m (TableMetadata b -> TableMetadata b) Source #

data SetRelComment b Source #

Instances

Instances details
Backend b => Eq (SetRelComment b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Relationship

Backend b => Show (SetRelComment b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Relationship

Generic (SetRelComment b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Relationship

Associated Types

type Rep (SetRelComment b) :: Type -> Type #

Backend b => FromJSON (SetRelComment b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Relationship

Methods

parseJSON :: Value -> Parser (SetRelComment b)

parseJSONList :: Value -> Parser [SetRelComment b]

type Rep (SetRelComment b) Source # 
Instance details

Defined in Hasura.RQL.DDL.Relationship

type Rep (SetRelComment b) = D1 ('MetaData "SetRelComment" "Hasura.RQL.DDL.Relationship" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SetRelComment" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName) :*: S1 ('MetaSel ('Just "arTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (TableName b))) :*: (S1 ('MetaSel ('Just "arRelationship") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelName) :*: S1 ('MetaSel ('Just "arComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))