graphql-engine/server/src-lib/Hasura/GraphQL/Parser.hs
Samir Talwar b77005c320 schema-parsers: Duplicate scientificToFoo to break a dependency.
For some reason these functions exist in `Backends.Postgres.SQL.Value`.
We don't want to depend on that module here.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5292
GitOrigin-RevId: a09bd3cdb0caf08938bce0728a8d281344c1d4ce
2022-08-03 12:04:48 +00:00

73 lines
1.7 KiB
Haskell

-- | This module exports the public API to our internal GraphQL query parser
-- combinator language. For more details, see the documentation for 'Parser'.
module Hasura.GraphQL.Parser
( Directive (..),
InputFieldsParser (..),
FieldParser (..),
ParsedSelection (..),
Parser (..),
parserType,
runParser,
bind,
bindField,
bindFields,
boolean,
int,
float,
string,
identifier,
uuid,
json,
jsonb,
nonNegativeInt,
bigInt,
scientific,
jsonScalar,
enum,
nullable,
nullableParser,
nonNullableParser,
multiple,
setParserOrigin,
setFieldParserOrigin,
setInputFieldsParserOrigin,
list,
object,
selectionSet,
safeSelectionSet,
selectionSetInterface,
selectionSetObject,
selectionSetUnion,
field,
fieldWithDefault,
fieldOptional,
wrapFieldParser,
handleTypename,
selection,
rawSelection,
selection_,
subselection,
rawSubselection,
subselection_,
jsonToGraphQL,
valueToJSON,
module Hasura.GraphQL.Parser.Class,
module Hasura.GraphQL.Parser.ErrorCode,
module Hasura.GraphQL.Parser.Monad,
module Hasura.GraphQL.Parser.Names,
module Hasura.GraphQL.Parser.Schema,
module Hasura.GraphQL.Parser.Variable,
)
where
import Hasura.GraphQL.Parser.Class
import Hasura.GraphQL.Parser.Directives
import Hasura.GraphQL.Parser.ErrorCode
import Hasura.GraphQL.Parser.Internal.Convert
import Hasura.GraphQL.Parser.Internal.Parser
import Hasura.GraphQL.Parser.Internal.Scalars
import Hasura.GraphQL.Parser.Monad
import Hasura.GraphQL.Parser.Names
import Hasura.GraphQL.Parser.Schema
import Hasura.GraphQL.Parser.Variable