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

Hasura.GraphQL.Schema.OrderBy

Synopsis

Documentation

logicalModelOrderByExp :: forall b r m n. MonadBuildSchema b r m n => LogicalModelInfo b -> SchemaT r m (Parser 'Input n [AnnotatedOrderByItemG b (UnpreparedValue b)]) Source #

Corresponds to an object type for an order by.

input table_order_by {
  col1: order_by
  col2: order_by
  .     .
  .     .
  coln: order_by
  obj-rel: <remote-table>_order_by
}

TODO: When there are no columns accessible to a role, the `table_order_by` will be an empty input object. In such a case, we can avoid exposing the order_by argument.

tableOrderByExp :: forall b r m n. MonadBuildSchema b r m n => TableInfo b -> SchemaT r m (Parser 'Input n [AnnotatedOrderByItemG b (UnpreparedValue b)]) Source #

Corresponds to an object type for an order by.

input table_order_by {
  col1: order_by
  col2: order_by
  .     .
  .     .
  coln: order_by
  obj-rel: <remote-table>_order_by
}