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

Hasura.Backends.BigQuery.Parser.Scalars

Description

This module defines the scalars we use specific to the BigQuery schema.

An idiosyncracy of BigQuery is that numbers serialized via JSON uses string literals instead of number literals, because BigQuery handles wider-bit numbers than JSON/JavaScript does.

Therefore, the BigQuery Backend uses bespoke parsers for numeric scalar input, which accept string literals as well as number literals, such that we preserve symmetry with with output formats.

Documentation

bqInt64 :: forall origin m. MonadParse m => Parser origin 'Both m Int64 Source #

bqFloat64 :: forall origin m. MonadParse m => Parser origin 'Both m Float64 Source #