graphql-engine/server/src-lib/Hasura/GraphQL/Parser.hs
Karthikeyan Chinnakonda 3ea611f9fd
Server: Validate remote schema queries (#5938)
* [skip ci] use the args while making the fieldParser

* modify the execution part of the remote queries

* parse union queries deeply

* add test for remote schema field validation

* add tests for validating remote query arguments


Co-authored-by: Auke Booij <auke@hasura.io>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-13 14:03:11 +05:30

55 lines
1.1 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
( Parser
, parserType
, runParser
, bind
, bindFields
, ScalarRepresentation(..)
, scalar
, boolean
, int
, float
, string
, identifier
, unsafeRawScalar
, enum
, nullable
, list
, object
, selectionSet
, safeSelectionSet
, selectionSetObject
, InputFieldsParser
, field
, fieldWithDefault
, fieldOptional
, FieldParser
, ParsedSelection(..)
, handleTypename
, selection
, rawSelection
, selection_
, subselection
, rawSubselection
, subselection_
, jsonToGraphQL
, module Hasura.GraphQL.Parser.Class
, module Hasura.GraphQL.Parser.Column
, module Hasura.GraphQL.Parser.Monad
, module Hasura.GraphQL.Parser.Schema
) where
import Hasura.GraphQL.Parser.Class
import Hasura.GraphQL.Parser.Column
import Hasura.GraphQL.Parser.Internal.Parser
import Hasura.GraphQL.Parser.Monad
import Hasura.GraphQL.Parser.Schema