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

Hasura.GraphQL.Schema.Typename

Synopsis

Documentation

newtype MkTypename Source #

Type name customization

Constructors

MkTypename 

Fields

withTypenameCustomization :: forall m r a. (MonadReader r m, Has MkTypename r) => MkTypename -> m a -> m a Source #

Inject a new MkTypename customization function into the environment. This can be used by schema-building code (with MonadBuildSchema constraint) to ensure the correct type name customizations are applied.