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

Hasura.RQL.Types.Metadata.Object

Synopsis

Documentation

data TableMetadataObjId Source #

Instances

Instances details
Eq TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Show TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep TableMetadataObjId :: Type -> Type #

Hashable TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep TableMetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data SourceMetadataObjId b Source #

Instances

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

Defined in Hasura.RQL.Types.Metadata.Object

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

Defined in Hasura.RQL.Types.Metadata.Object

Generic (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

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

Backend b => Hashable (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep (SourceMetadataObjId b) Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data MetadataObjId Source #

Instances

Instances details
Eq MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Show MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep MetadataObjId :: Type -> Type #

ToErrorValue MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Hashable MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObjId Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObjId = D1 ('MetaData "MetadataObjId" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) (((C1 ('MetaCons "MOSource" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName)) :+: (C1 ('MetaCons "MOSourceObjId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnyBackend SourceMetadataObjId))) :+: C1 ('MetaCons "MORemoteSchema" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName)))) :+: (C1 ('MetaCons "MORemoteSchemaPermissions" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: (C1 ('MetaCons "MORemoteSchemaRemoteRelationship" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RemoteSchemaName) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelName))) :+: C1 ('MetaCons "MOCustomTypes" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "MOAction" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionName)) :+: (C1 ('MetaCons "MOActionPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: C1 ('MetaCons "MOCronTrigger" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TriggerName)))) :+: ((C1 ('MetaCons "MOInheritedRole" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName)) :+: C1 ('MetaCons "MOEndpoint" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EndpointName))) :+: (C1 ('MetaCons "MOHostTlsAllowlist" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String)) :+: C1 ('MetaCons "MOQueryCollectionsQuery" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CollectionName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListedQuery))))))

data MetadataObject Source #

Constructors

MetadataObject 

Fields

Instances

Instances details
Eq MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Show MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep MetadataObject :: Type -> Type #

Hashable MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObject Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep MetadataObject = D1 ('MetaData "MetadataObject" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "MetadataObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "_moId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObjId) :*: S1 ('MetaSel ('Just "_moDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Value)))

data InconsistentRoleEntity Source #

Constructors

InconsistentTablePermission 

Fields

  • SourceName
     
  • Text

    Table name -- using Text here instead of `TableName b` for simplification, Otherwise, we'll have to create a newtype wrapper around `TableName b` and then use it with AnyBackend

  • PermType
     
InconsistentRemoteSchemaPermission RemoteSchemaName 

Instances

Instances details
Eq InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Show InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep InconsistentRoleEntity :: Type -> Type #

Hashable InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

ToJSON InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

ToTxt InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentRoleEntity Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

data InconsistentMetadata Source #

Instances

Instances details
Eq InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Show InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Generic InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

Associated Types

type Rep InconsistentMetadata :: Type -> Type #

Hashable InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

ToJSON InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Metadata.Object

type Rep InconsistentMetadata = D1 ('MetaData "InconsistentMetadata" "Hasura.RQL.Types.Metadata.Object" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "InconsistentObject" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject))) :+: (C1 ('MetaCons "ConflictingObjects" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetadataObject])) :+: C1 ('MetaCons "DuplicateObjects" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObjId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Value])))) :+: ((C1 ('MetaCons "DuplicateRestVariables" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject)) :+: C1 ('MetaCons "InvalidRestSegments" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetadataObject))) :+: (C1 ('MetaCons "AmbiguousRestEndpoints" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MetadataObject])) :+: C1 ('MetaCons "ConflictingInheritedPermission" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InconsistentRoleEntity)))))

droppableInconsistentMetadata :: InconsistentMetadata -> Bool Source #

Helper function to differentiate which type of inconsistent metadata can be dropped, if an inconsistency cannot be resolved by dropping any part of the metadata then this function should return False, otherwise it should return True

groupInconsistentMetadataById :: [InconsistentMetadata] -> HashMap MetadataObjId (NonEmpty InconsistentMetadata) Source #

Builds a map from each unique metadata object id to the inconsistencies associated with it. Note that a single inconsistency can involve multiple metadata objects, so the same inconsistency may appear in the resulting map multiple times!