graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.LogicalModel.Metadata

Synopsis

Documentation

data LogicalModelMetadata (b :: BackendType) Source #

Description of a logical model for use in metadata (before schema cache)

Instances

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

Defined in Hasura.LogicalModel.Metadata

Backend b => ToJSON (LogicalModelMetadata b) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

Backend b => HasCodec (LogicalModelMetadata b) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

Generic (LogicalModelMetadata b) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

Associated Types

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

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

Defined in Hasura.LogicalModel.Metadata

Backend b => Eq (LogicalModelMetadata b) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

type Rep (LogicalModelMetadata b) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

type Rep (LogicalModelMetadata b) = D1 ('MetaData "LogicalModelMetadata" "Hasura.LogicalModel.Metadata" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelMetadata" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_lmmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelName) :*: S1 ('MetaSel ('Just "_lmmFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (InsOrdHashMap (Column b) (LogicalModelField b)))) :*: (S1 ('MetaSel ('Just "_lmmDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "_lmmSelectPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (InsOrdHashMap RoleName (SelPermDef b))))))

data WithLogicalModel a Source #

A wrapper to tie something to a particular native query. Specifically, it assumes the underlying _wlmInfo is represented as an object, and adds two keys to that object: source and root_field_name.

Instances

Instances details
FromJSON a => FromJSON (WithLogicalModel a) Source #

something to note here: if the a contains a name or source key then this won't work anymore.

Instance details

Defined in Hasura.LogicalModel.Metadata

ToAesonPairs a => ToJSON (WithLogicalModel a) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

Show a => Show (WithLogicalModel a) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata

Eq a => Eq (WithLogicalModel a) Source # 
Instance details

Defined in Hasura.LogicalModel.Metadata