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

Hasura.GraphQL.Namespace

Synopsis

Documentation

data RootFieldAlias Source #

Constructors

RootFieldAlias 

Instances

Instances details
ToJSON RootFieldAlias Source #

This ToJSON instance is used in responses to the explain API (via the ToJSON instance for ExplainPlan). It will use dot separator for namespaces fields, i.e. "namespace.fieldname" TODO: We need to decide if this dotted notation is what we want to use for explain responses.

Instance details

Defined in Hasura.GraphQL.Namespace

Generic RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Associated Types

type Rep RootFieldAlias :: Type -> Type #

Show RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Eq RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Hashable RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

ToTxt RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

type Rep RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

type Rep RootFieldAlias = D1 ('MetaData "RootFieldAlias" "Hasura.GraphQL.Namespace" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "RootFieldAlias" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rfaNamespace") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Name)) :*: S1 ('MetaSel ('Just "_rfaAlias") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Name)))

data NamespacedField a Source #

Constructors

NotNamespaced a

Normal field

Namespaced (InsOrdHashMap Name a)

Namespace field with other fields nested within

Instances

Instances details
Functor NamespacedField Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Methods

fmap :: (a -> b) -> NamespacedField a -> NamespacedField b #

(<$) :: a -> NamespacedField b -> NamespacedField a #

Show a => Show (NamespacedField a) Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Eq a => Eq (NamespacedField a) Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

namespacedField :: (a -> b) -> (InsOrdHashMap Name a -> b) -> NamespacedField a -> b Source #

customizeNamespace :: forall n a. MonadParse n => Maybe Name -> (Name -> ParsedSelection a -> a) -> MkTypename -> [FieldParser n a] -> [FieldParser n (NamespacedField a)] Source #

Wrap the field parser results in NamespacedField