Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data QueryRequest = QueryRequest {}
- data Query = Query {}
- memptyToNothing :: (Monoid m, Eq m) => m -> Maybe m
- data Field
- data RelationshipField = RelationshipField {}
Documentation
data QueryRequest Source #
An abstract request to retrieve structured data from some source.
Instances
The details of a query against a table
Query | |
|
Instances
The specific fields that are targeted by a Query
.
A field conceptually falls under one of the two following categories:
1. a "column" within the data store that the query is being issued against
2. a "relationship", which indicates that the field is the result of
another query that must be executed on its own
NOTE: The ToJSON
instance is only intended for logging purposes.
Instances
Eq Field Source # | |
Data Field Source # | |
Defined in Hasura.Backends.DataConnector.IR.Query gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Field -> c Field # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Field # dataTypeOf :: Field -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Field) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Field) # gmapT :: (forall b. Data b => b -> b) -> Field -> Field # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Field -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Field -> r # gmapQ :: (forall d. Data d => d -> u) -> Field -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Field -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Field -> m Field # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Field -> m Field # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Field -> m Field # | |
Ord Field Source # | |
Show Field Source # | |
Generic Field Source # | |
ToJSON Field Source # | |
Defined in Hasura.Backends.DataConnector.IR.Query | |
From Field Field Source # | |
Defined in Hasura.Backends.DataConnector.IR.Query | |
type Rep Field Source # | |
Defined in Hasura.Backends.DataConnector.IR.Query type Rep Field = D1 ('MetaData "Field" "Hasura.Backends.DataConnector.IR.Query" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ColumnField" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Name)) :+: C1 ('MetaCons "RelField" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RelationshipField))) |
data RelationshipField Source #
A relationship consists of the following components:
- a sub-query, from the perspective that a relationship field will occur
within a broader Query
- a join condition relating the data returned by the sub-query with that
of the broader Query
cf. https://en.wikipedia.org/wiki/Join_(SQL) https://www.postgresql.org/docs/13/tutorial-join.html https://www.postgresql.org/docs/13/queries-table-expressions.html#QUERIES-FROM
NOTE: The ToJSON
instance is only intended for logging purposes.