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

Hasura.RQL.Types.SourceCustomization

Synopsis

Documentation

data RootFieldsCustomization Source #

Instances

Instances details
FromJSON RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

ToJSON RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

HasCodec RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Generic RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Associated Types

type Rep RootFieldsCustomization :: Type -> Type #

Show RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Eq RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep RootFieldsCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep RootFieldsCustomization = D1 ('MetaData "RootFieldsCustomization" "Hasura.RQL.Types.SourceCustomization" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RootFieldsCustomization" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rootfcNamespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: (S1 ('MetaSel ('Just "_rootfcPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_rootfcSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)))))

data SourceTypeCustomization Source #

Instances

Instances details
FromJSON SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

ToJSON SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

HasCodec SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Generic SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Associated Types

type Rep SourceTypeCustomization :: Type -> Type #

Show SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Eq SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep SourceTypeCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep SourceTypeCustomization = D1 ('MetaData "SourceTypeCustomization" "Hasura.RQL.Types.SourceCustomization" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SourceTypeCustomization" 'PrefixI 'True) (S1 ('MetaSel ('Just "_stcPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_stcSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Name))))

applyTypeNameCaseCust :: NamingCase -> Name -> Name Source #

apply naming convention to type name

applyFieldNameCaseCust :: NamingCase -> Name -> Name Source #

apply naming convention to field name

getTextFieldName :: NamingCase -> GQLNameIdentifier -> Text Source #

returns field name according to the naming conventions as Text

applyTypeNameCaseIdentifier :: NamingCase -> GQLNameIdentifier -> Name Source #

applies naming convention and returns field name

Note: This can't possibly fail as GQLNameIdentifier contains already validated identifiers

getTextTypeName :: NamingCase -> GQLNameIdentifier -> Text Source #

returns type name according to the naming conventions as Text

applyFieldNameCaseIdentifier :: NamingCase -> GQLNameIdentifier -> Name Source #

applies naming convention and returns type name

Note: This can't possibly fail as GQLNameIdentifier contains already validated identifiers

setFieldNameCase :: NamingCase -> TableInfo b -> CustomRootField -> (GQLNameIdentifier -> GQLNameIdentifier) -> GQLNameIdentifier -> Name Source #

Builds field name with proper case. Please note that this is a pure function as all the validation has already been done while preparing GQLNameIdentifier.

data SourceCustomization Source #

Source customization information as it appears in the metadata.

Instances

Instances details
FromJSON SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

ToJSON SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

HasCodec SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Generic SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Associated Types

type Rep SourceCustomization :: Type -> Type #

Show SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

Eq SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep SourceCustomization Source # 
Instance details

Defined in Hasura.RQL.Types.SourceCustomization

type Rep SourceCustomization = D1 ('MetaData "SourceCustomization" "Hasura.RQL.Types.SourceCustomization" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "SourceCustomization" 'PrefixI 'True) (S1 ('MetaSel ('Just "_scRootFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RootFieldsCustomization)) :*: (S1 ('MetaSel ('Just "_scTypeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceTypeCustomization)) :*: S1 ('MetaSel ('Just "_scNamingConvention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NamingCase)))))