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

Hasura.GraphQL.Namespace

Synopsis

Documentation

data RootFieldAlias Source #

Constructors

RootFieldAlias 

Fields

Instances

Instances details
Eq RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Show RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Generic RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Associated Types

type Rep RootFieldAlias :: Type -> Type #

Hashable RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

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

Methods

toJSON :: RootFieldAlias -> Value

toEncoding :: RootFieldAlias -> Encoding

toJSONList :: [RootFieldAlias] -> Value

toEncodingList :: [RootFieldAlias] -> Encoding

ToTxt RootFieldAlias Source # 
Instance details

Defined in Hasura.GraphQL.Namespace

Methods

toTxt :: RootFieldAlias -> Text Source #

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)))

type RootFieldMap = InsOrdHashMap RootFieldAlias Source #

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 #

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

Defined in Hasura.GraphQL.Namespace

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

Defined in Hasura.GraphQL.Namespace

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

type NamespacedFieldMap a = InsOrdHashMap Name (NamespacedField a) 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