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

Hasura.Backends.MySQL.Instances.Schema

Synopsis

Documentation

comparisonExps' :: forall m n r. (BackendSchema 'MySQL, MonadMemoize m, MonadParse n, MonadError QErr m, MonadReader r m, Has MkTypename r, Has NamingCase r) => ColumnType 'MySQL -> m (Parser 'Input n [ComparisonExp 'MySQL]) Source #

TODO: Make this as thorough as the one for MSSQL/PostgreSQL

Orphan instances

BackendTableSelectSchema 'MySQL Source # 
Instance details

Methods

tableArguments :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MySQL -> TableInfo 'MySQL -> m (InputFieldsParser n (SelectArgsG 'MySQL (UnpreparedValue 'MySQL))) Source #

tableSelectionSet :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MySQL -> TableInfo 'MySQL -> m (Maybe (Parser 'Output n (AnnotatedFields 'MySQL))) Source #

selectTable :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MySQL -> TableInfo 'MySQL -> Name -> Maybe Description -> m (Maybe (FieldParser n (SelectExp 'MySQL))) Source #

selectTableAggregate :: forall r m (n :: Type -> Type). MonadBuildSchemaBase r m n => SourceInfo 'MySQL -> TableInfo 'MySQL -> Name -> Maybe Description -> m (Maybe (FieldParser n (AggSelectExp 'MySQL))) Source #

BackendSchema 'MySQL Source # 
Instance details

Methods

buildTableQueryAndSubscriptionFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> m ([FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))], [FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))], Maybe (Name, Parser 'Output n (ApolloFederationParserFunction n))) Source #

buildTableStreamingSubscriptionFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> m [FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildTableRelayQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> NESeq (ColumnInfo 'MySQL) -> m [FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildTableInsertMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> m [FieldParser n (AnnotatedInsert 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildTableUpdateMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> m [FieldParser n (AnnotatedUpdateG 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildTableDeleteMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> Scenario -> SourceInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> GQLNameIdentifier -> m [FieldParser n (AnnDelG 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildFunctionQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> FunctionName 'MySQL -> FunctionInfo 'MySQL -> TableName 'MySQL -> m [FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildFunctionRelayQueryFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> FunctionName 'MySQL -> FunctionInfo 'MySQL -> TableName 'MySQL -> NESeq (ColumnInfo 'MySQL) -> m [FieldParser n (QueryDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

buildFunctionMutationFields :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => MkRootFieldName -> SourceInfo 'MySQL -> FunctionName 'MySQL -> FunctionInfo 'MySQL -> TableName 'MySQL -> m [FieldParser n (MutationDB 'MySQL (RemoteRelationshipField UnpreparedValue) (UnpreparedValue 'MySQL))] Source #

mkRelationshipParser :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => SourceInfo 'MySQL -> RelInfo 'MySQL -> m (Maybe (InputFieldsParser n (Maybe (AnnotatedInsertField 'MySQL (UnpreparedValue 'MySQL))))) Source #

relayExtension :: Maybe (XRelay 'MySQL) Source #

nodesAggExtension :: Maybe (XNodesAgg 'MySQL) Source #

streamSubscriptionExtension :: Maybe (XStreamingSubscription 'MySQL) Source #

columnParser :: forall (n :: Type -> Type) m r. (MonadParse n, MonadError QErr m, MonadReader r m, Has MkTypename r, Has NamingCase r) => ColumnType 'MySQL -> Nullability -> m (Parser 'Both n (ValueWithOrigin (ColumnValue 'MySQL))) Source #

scalarSelectionArgumentsParser :: forall (n :: Type -> Type). MonadParse n => ColumnType 'MySQL -> InputFieldsParser n (Maybe (ScalarSelectionArguments 'MySQL)) Source #

orderByOperators :: SourceInfo 'MySQL -> NamingCase -> (Name, NonEmpty (Definition EnumValueInfo, (BasicOrderType 'MySQL, NullsOrderType 'MySQL))) Source #

comparisonExps :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => ColumnType 'MySQL -> m (Parser 'Input n [ComparisonExp 'MySQL]) Source #

countTypeInput :: forall (n :: Type -> Type). MonadParse n => Maybe (Parser 'Both n (Column 'MySQL)) -> InputFieldsParser n (CountDistinct -> CountType 'MySQL) Source #

aggregateOrderByCountType :: ScalarType 'MySQL Source #

computedField :: forall r m (n :: Type -> Type). MonadBuildSchema 'MySQL r m n => SourceInfo 'MySQL -> ComputedFieldInfo 'MySQL -> TableName 'MySQL -> TableInfo 'MySQL -> m (Maybe (FieldParser n (AnnotatedField 'MySQL))) Source #