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

Hasura.Backends.Postgres.Translate.Select.Simple

Description

This module defines the top-level translation functions pertaining to queries that are not aggregation queries, i.e. so-called "simple" selects into Postgres AST.

Synopsis

Documentation

selectQuerySQL :: forall pgKind. (Backend ('Postgres pgKind), PostgresAnnotatedFieldJSON pgKind) => JsonAggSelect -> AnnSimpleSelect ('Postgres pgKind) -> Query Source #

Translates IR to Postgres queries for simple SELECTs (select queries that are not aggregations, including subscriptions).

See mkSQLSelect for the Postgres AST.