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

Hasura.LogicalModel.Types

Description

A name for a logical model as it is recognized by the graphql schema.

Synopsis

Documentation

newtype LogicalModelName Source #

Constructors

LogicalModelName 

Instances

Instances details
FromJSON LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

FromJSONKey LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

ToJSON LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

ToJSONKey LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

HasCodec LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Data LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LogicalModelName -> c LogicalModelName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LogicalModelName #

toConstr :: LogicalModelName -> Constr #

dataTypeOf :: LogicalModelName -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LogicalModelName) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LogicalModelName) #

gmapT :: (forall b. Data b => b -> b) -> LogicalModelName -> LogicalModelName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LogicalModelName -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LogicalModelName -> r #

gmapQ :: (forall d. Data d => d -> u) -> LogicalModelName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> LogicalModelName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LogicalModelName -> m LogicalModelName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LogicalModelName -> m LogicalModelName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LogicalModelName -> m LogicalModelName #

Generic LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

type Rep LogicalModelName :: Type -> Type #

Show LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

NFData LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

rnf :: LogicalModelName -> () #

Eq LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Ord LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Hashable LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

ToTxt LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Lift LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

lift :: Quote m => LogicalModelName -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => LogicalModelName -> Code m LogicalModelName #

type Rep LogicalModelName Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep LogicalModelName = D1 ('MetaData "LogicalModelName" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'True) (C1 ('MetaCons "LogicalModelName" 'PrefixI 'True) (S1 ('MetaSel ('Just "getLogicalModelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)))

data LogicalModelTypeScalar b Source #

Instances

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

Generic (LogicalModelTypeScalar b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

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

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

Defined in Hasura.LogicalModel.Types

Backend b => NFData (LogicalModelTypeScalar b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

rnf :: LogicalModelTypeScalar b -> () #

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelTypeScalar b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelTypeScalar b) = D1 ('MetaData "LogicalModelTypeScalar" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelTypeScalarC" 'PrefixI 'True) (S1 ('MetaSel ('Just "lmtsScalar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ScalarType b)) :*: S1 ('MetaSel ('Just "lmtsNullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

data LogicalModelTypeArray b Source #

Instances

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

Generic (LogicalModelTypeArray b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

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

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

Defined in Hasura.LogicalModel.Types

Backend b => NFData (LogicalModelTypeArray b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

rnf :: LogicalModelTypeArray b -> () #

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelTypeArray b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelTypeArray b) = D1 ('MetaData "LogicalModelTypeArray" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelTypeArrayC" 'PrefixI 'True) (S1 ('MetaSel ('Just "lmtaArray") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModelType b)) :*: S1 ('MetaSel ('Just "lmtaNullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

data LogicalModelTypeReference Source #

Instances

Instances details
FromJSON LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

ToJSON LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

HasCodec LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Generic LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

type Rep LogicalModelTypeReference :: Type -> Type #

Show LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

NFData LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Eq LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Hashable LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep LogicalModelTypeReference Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep LogicalModelTypeReference = D1 ('MetaData "LogicalModelTypeReference" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelTypeReferenceC" 'PrefixI 'True) (S1 ('MetaSel ('Just "lmtrReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelName) :*: S1 ('MetaSel ('Just "lmtrNullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))

data LogicalModelType b Source #

Instances

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

Backend b => HasCodec (LogicalModelType b) Source #

forgive me, I really did try and do this the native Autodocodec way and everything I did kept freezing the whole of HGE

Instance details

Defined in Hasura.LogicalModel.Types

Generic (LogicalModelType b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

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

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

Defined in Hasura.LogicalModel.Types

Backend b => NFData (LogicalModelType b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

rnf :: LogicalModelType b -> () #

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelType b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelType b) = D1 ('MetaData "LogicalModelType" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelTypeScalar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModelTypeScalar b))) :+: (C1 ('MetaCons "LogicalModelTypeArray" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModelTypeArray b))) :+: C1 ('MetaCons "LogicalModelTypeReference" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LogicalModelTypeReference))))

data LogicalModelField b Source #

a single field in a Logical Model

Instances

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

Backend b => HasCodec (LogicalModelField b) Source #

this codec is complicated because we want to support both the old scalar encoded fields and our new separate type

Instance details

Defined in Hasura.LogicalModel.Types

Generic (LogicalModelField b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Associated Types

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

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

Defined in Hasura.LogicalModel.Types

Backend b => NFData (LogicalModelField b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

Methods

rnf :: LogicalModelField b -> () #

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

Defined in Hasura.LogicalModel.Types

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

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelField b) Source # 
Instance details

Defined in Hasura.LogicalModel.Types

type Rep (LogicalModelField b) = D1 ('MetaData "LogicalModelField" "Hasura.LogicalModel.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "LogicalModelField" 'PrefixI 'True) (S1 ('MetaSel ('Just "lmfName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Column b)) :*: (S1 ('MetaSel ('Just "lmfType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (LogicalModelType b)) :*: S1 ('MetaSel ('Just "lmfDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))