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

Hasura.RQL.IR.Select.OrderBy

Synopsis

Documentation

data AnnotatedOrderByElement (b :: BackendType) v Source #

Constructors

AOCColumn 

Fields

  • (ColumnInfo b)
     
  • (AnnRedactionExp b v)

    This type is used to determine whether the column should be redacted before being ordered over

AOCObjectRelation 

Fields

AOCArrayAggregation 

Fields

AOCComputedField (ComputedFieldOrderBy b v) 

Instances

Instances details
Backend b => Foldable (AnnotatedOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fold :: Monoid m => AnnotatedOrderByElement b m -> m #

foldMap :: Monoid m => (a -> m) -> AnnotatedOrderByElement b a -> m #

foldMap' :: Monoid m => (a -> m) -> AnnotatedOrderByElement b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> AnnotatedOrderByElement b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> AnnotatedOrderByElement b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> AnnotatedOrderByElement b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> AnnotatedOrderByElement b a -> b0 #

foldr1 :: (a -> a -> a) -> AnnotatedOrderByElement b a -> a #

foldl1 :: (a -> a -> a) -> AnnotatedOrderByElement b a -> a #

toList :: AnnotatedOrderByElement b a -> [a] #

null :: AnnotatedOrderByElement b a -> Bool #

length :: AnnotatedOrderByElement b a -> Int #

elem :: Eq a => a -> AnnotatedOrderByElement b a -> Bool #

maximum :: Ord a => AnnotatedOrderByElement b a -> a #

minimum :: Ord a => AnnotatedOrderByElement b a -> a #

sum :: Num a => AnnotatedOrderByElement b a -> a #

product :: Num a => AnnotatedOrderByElement b a -> a #

Backend b => Traversable (AnnotatedOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Backend b => Functor (AnnotatedOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Generic (AnnotatedOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Associated Types

type Rep (AnnotatedOrderByElement b v) :: Type -> Type #

(Backend b, Show (AnnBoolExp b v), Show (AnnotatedAggregateOrderBy b v), Show (ComputedFieldOrderBy b v), Show (AnnRedactionExp b v)) => Show (AnnotatedOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Eq (AnnBoolExp b v), Eq (AnnotatedAggregateOrderBy b v), Eq (ComputedFieldOrderBy b v), Eq (AnnRedactionExp b v)) => Eq (AnnotatedOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Hashable (AnnBoolExp b v), Hashable (AnnotatedAggregateOrderBy b v), Hashable (ComputedFieldOrderBy b v), Hashable (AnnRedactionExp b v)) => Hashable (AnnotatedOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AnnotatedOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AnnotatedOrderByElement b v) = D1 ('MetaData "AnnotatedOrderByElement" "Hasura.RQL.IR.Select.OrderBy" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "AOCColumn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ColumnInfo b)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnRedactionExp b v))) :+: C1 ('MetaCons "AOCObjectRelation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (RelInfo b)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnBoolExp b v)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnotatedOrderByElement b v))))) :+: (C1 ('MetaCons "AOCArrayAggregation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (RelInfo b)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnBoolExp b v)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnotatedAggregateOrderBy b v)))) :+: C1 ('MetaCons "AOCComputedField" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ComputedFieldOrderBy b v)))))

data AnnotatedAggregateOrderBy (b :: BackendType) v Source #

Constructors

AAOCount 
AAOOp (AggregateOrderByColumn b v)

Order by an aggregate function applied to a column

Instances

Instances details
Backend b => Foldable (AnnotatedAggregateOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fold :: Monoid m => AnnotatedAggregateOrderBy b m -> m #

foldMap :: Monoid m => (a -> m) -> AnnotatedAggregateOrderBy b a -> m #

foldMap' :: Monoid m => (a -> m) -> AnnotatedAggregateOrderBy b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> AnnotatedAggregateOrderBy b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> AnnotatedAggregateOrderBy b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> AnnotatedAggregateOrderBy b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> AnnotatedAggregateOrderBy b a -> b0 #

foldr1 :: (a -> a -> a) -> AnnotatedAggregateOrderBy b a -> a #

foldl1 :: (a -> a -> a) -> AnnotatedAggregateOrderBy b a -> a #

toList :: AnnotatedAggregateOrderBy b a -> [a] #

null :: AnnotatedAggregateOrderBy b a -> Bool #

length :: AnnotatedAggregateOrderBy b a -> Int #

elem :: Eq a => a -> AnnotatedAggregateOrderBy b a -> Bool #

maximum :: Ord a => AnnotatedAggregateOrderBy b a -> a #

minimum :: Ord a => AnnotatedAggregateOrderBy b a -> a #

sum :: Num a => AnnotatedAggregateOrderBy b a -> a #

product :: Num a => AnnotatedAggregateOrderBy b a -> a #

Backend b => Traversable (AnnotatedAggregateOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Backend b => Functor (AnnotatedAggregateOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Generic (AnnotatedAggregateOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Associated Types

type Rep (AnnotatedAggregateOrderBy b v) :: Type -> Type #

(Backend b, Show (AggregateOrderByColumn b v)) => Show (AnnotatedAggregateOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Eq (AggregateOrderByColumn b v)) => Eq (AnnotatedAggregateOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Hashable (AggregateOrderByColumn b v)) => Hashable (AnnotatedAggregateOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AnnotatedAggregateOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AnnotatedAggregateOrderBy b v) = D1 ('MetaData "AnnotatedAggregateOrderBy" "Hasura.RQL.IR.Select.OrderBy" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "AAOCount" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AAOOp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AggregateOrderByColumn b v))))

data AggregateOrderByColumn b v Source #

Constructors

AggregateOrderByColumn 

Fields

Instances

Instances details
Backend b => Foldable (AggregateOrderByColumn b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fold :: Monoid m => AggregateOrderByColumn b m -> m #

foldMap :: Monoid m => (a -> m) -> AggregateOrderByColumn b a -> m #

foldMap' :: Monoid m => (a -> m) -> AggregateOrderByColumn b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> AggregateOrderByColumn b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> AggregateOrderByColumn b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> AggregateOrderByColumn b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> AggregateOrderByColumn b a -> b0 #

foldr1 :: (a -> a -> a) -> AggregateOrderByColumn b a -> a #

foldl1 :: (a -> a -> a) -> AggregateOrderByColumn b a -> a #

toList :: AggregateOrderByColumn b a -> [a] #

null :: AggregateOrderByColumn b a -> Bool #

length :: AggregateOrderByColumn b a -> Int #

elem :: Eq a => a -> AggregateOrderByColumn b a -> Bool #

maximum :: Ord a => AggregateOrderByColumn b a -> a #

minimum :: Ord a => AggregateOrderByColumn b a -> a #

sum :: Num a => AggregateOrderByColumn b a -> a #

product :: Num a => AggregateOrderByColumn b a -> a #

Backend b => Traversable (AggregateOrderByColumn b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Backend b => Functor (AggregateOrderByColumn b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Generic (AggregateOrderByColumn b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Associated Types

type Rep (AggregateOrderByColumn b v) :: Type -> Type #

(Backend b, Show (AnnRedactionExp b v)) => Show (AggregateOrderByColumn b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Eq (AnnRedactionExp b v)) => Eq (AggregateOrderByColumn b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Hashable (AnnRedactionExp b v)) => Hashable (AggregateOrderByColumn b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AggregateOrderByColumn b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (AggregateOrderByColumn b v) = D1 ('MetaData "AggregateOrderByColumn" "Hasura.RQL.IR.Select.OrderBy" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "AggregateOrderByColumn" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_aobcAggregateFunctionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_aobcAggregateFunctionReturnType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ColumnType b))) :*: (S1 ('MetaSel ('Just "_aobcColumn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ColumnInfo b)) :*: S1 ('MetaSel ('Just "_aobcRedactionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AnnRedactionExp b v)))))

data ComputedFieldOrderByElement (b :: BackendType) v Source #

The order by element for a computed field based on its return type

Constructors

CFOBEScalar

Sort by the scalar computed field

Fields

  • (ScalarType b)
     
  • (AnnRedactionExp b v)

    This type is used to determine whether the computed field should be redacted before being ordered over

CFOBETableAggregation 

Fields

Instances

Instances details
Backend b => Foldable (ComputedFieldOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fold :: Monoid m => ComputedFieldOrderByElement b m -> m #

foldMap :: Monoid m => (a -> m) -> ComputedFieldOrderByElement b a -> m #

foldMap' :: Monoid m => (a -> m) -> ComputedFieldOrderByElement b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> ComputedFieldOrderByElement b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> ComputedFieldOrderByElement b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> ComputedFieldOrderByElement b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> ComputedFieldOrderByElement b a -> b0 #

foldr1 :: (a -> a -> a) -> ComputedFieldOrderByElement b a -> a #

foldl1 :: (a -> a -> a) -> ComputedFieldOrderByElement b a -> a #

toList :: ComputedFieldOrderByElement b a -> [a] #

null :: ComputedFieldOrderByElement b a -> Bool #

length :: ComputedFieldOrderByElement b a -> Int #

elem :: Eq a => a -> ComputedFieldOrderByElement b a -> Bool #

maximum :: Ord a => ComputedFieldOrderByElement b a -> a #

minimum :: Ord a => ComputedFieldOrderByElement b a -> a #

sum :: Num a => ComputedFieldOrderByElement b a -> a #

product :: Num a => ComputedFieldOrderByElement b a -> a #

Backend b => Traversable (ComputedFieldOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Backend b => Functor (ComputedFieldOrderByElement b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Generic (ComputedFieldOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Associated Types

type Rep (ComputedFieldOrderByElement b v) :: Type -> Type #

(Backend b, Show v, Show (AnnBoolExp b v), Show (AnnotatedAggregateOrderBy b v), Show (AnnRedactionExp b v)) => Show (ComputedFieldOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Eq (AnnBoolExp b v), Eq (AnnotatedAggregateOrderBy b v), Eq (AnnRedactionExp b v)) => Eq (ComputedFieldOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Hashable (AnnBoolExp b v), Hashable (AnnotatedAggregateOrderBy b v), Hashable (AnnRedactionExp b v)) => Hashable (ComputedFieldOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (ComputedFieldOrderByElement b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

data ComputedFieldOrderBy (b :: BackendType) v Source #

Instances

Instances details
Backend b => Foldable (ComputedFieldOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fold :: Monoid m => ComputedFieldOrderBy b m -> m #

foldMap :: Monoid m => (a -> m) -> ComputedFieldOrderBy b a -> m #

foldMap' :: Monoid m => (a -> m) -> ComputedFieldOrderBy b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> ComputedFieldOrderBy b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> ComputedFieldOrderBy b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> ComputedFieldOrderBy b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> ComputedFieldOrderBy b a -> b0 #

foldr1 :: (a -> a -> a) -> ComputedFieldOrderBy b a -> a #

foldl1 :: (a -> a -> a) -> ComputedFieldOrderBy b a -> a #

toList :: ComputedFieldOrderBy b a -> [a] #

null :: ComputedFieldOrderBy b a -> Bool #

length :: ComputedFieldOrderBy b a -> Int #

elem :: Eq a => a -> ComputedFieldOrderBy b a -> Bool #

maximum :: Ord a => ComputedFieldOrderBy b a -> a #

minimum :: Ord a => ComputedFieldOrderBy b a -> a #

sum :: Num a => ComputedFieldOrderBy b a -> a #

product :: Num a => ComputedFieldOrderBy b a -> a #

Backend b => Traversable (ComputedFieldOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

traverse :: Applicative f => (a -> f b0) -> ComputedFieldOrderBy b a -> f (ComputedFieldOrderBy b b0) #

sequenceA :: Applicative f => ComputedFieldOrderBy b (f a) -> f (ComputedFieldOrderBy b a) #

mapM :: Monad m => (a -> m b0) -> ComputedFieldOrderBy b a -> m (ComputedFieldOrderBy b b0) #

sequence :: Monad m => ComputedFieldOrderBy b (m a) -> m (ComputedFieldOrderBy b a) #

Backend b => Functor (ComputedFieldOrderBy b) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Methods

fmap :: (a -> b0) -> ComputedFieldOrderBy b a -> ComputedFieldOrderBy b b0 #

(<$) :: a -> ComputedFieldOrderBy b b0 -> ComputedFieldOrderBy b a #

Generic (ComputedFieldOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

Associated Types

type Rep (ComputedFieldOrderBy b v) :: Type -> Type #

(Backend b, Show (ComputedFieldOrderByElement b v), Show (FunctionArgsExp b v)) => Show (ComputedFieldOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Eq (ComputedFieldOrderByElement b v), Eq (FunctionArgsExp b v)) => Eq (ComputedFieldOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

(Backend b, Hashable (ComputedFieldOrderByElement b v), Hashable (FunctionArgsExp b v)) => Hashable (ComputedFieldOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (ComputedFieldOrderBy b v) Source # 
Instance details

Defined in Hasura.RQL.IR.Select.OrderBy

type Rep (ComputedFieldOrderBy b v) = D1 ('MetaData "ComputedFieldOrderBy" "Hasura.RQL.IR.Select.OrderBy" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ComputedFieldOrderBy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_cfobXField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (XComputedField b)) :*: S1 ('MetaSel ('Just "_cfobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ComputedFieldName)) :*: (S1 ('MetaSel ('Just "_cfobFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionName b)) :*: (S1 ('MetaSel ('Just "_cfobFunctionArgsExp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (FunctionArgsExp b v)) :*: S1 ('MetaSel ('Just "_cfobOrderByElement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (ComputedFieldOrderByElement b v))))))