graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.GraphQL.Execute

Synopsis

Documentation

makeGQLContext :: UserInfo -> SchemaCache -> GraphQLQueryType -> GQLContext Source #

Construct a single step of an execution plan.

data ResolvedExecutionPlan Source #

Constructors

QueryExecutionPlan ExecutionPlan [QueryRootField UnpreparedValue] DirectiveMap

query execution; remote schemas and introspection possible

MutationExecutionPlan ExecutionPlan

mutation execution; only __typename introspection supported

SubscriptionExecutionPlan SubscriptionExecution

either action query or live query execution; remote schemas and introspection not supported

data SubscriptionExecution Source #

The comprehensive subscription plan. We only support either 1. Fields with only async action queries with no associated relationships or 2. Source database query fields from same source and also can be mixed with async action query fields whose relationships are defined to tables in the source

isSingleNamespace :: RootFieldMap a -> Bool Source #

Even when directive _multiple_top_level_fields is given, we can't allow fields within differently-aliased namespaces. This is because the namespace is added to the result by wrapping the bytestring response we get back from the DB.