mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
3cbcbd9291
## Description This PR removes `RQL.Types`, which was now only re-exporting a bunch of unrelated modules. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4363 GitOrigin-RevId: 894f29a19bff70b3dad8abc5d9858434d5065417
26 lines
780 B
Haskell
26 lines
780 B
Haskell
module Hasura.RQL.DDL.GraphqlSchemaIntrospection
|
|
( runSetGraphqlSchemaIntrospectionOptions,
|
|
)
|
|
where
|
|
|
|
import Control.Lens ((.~))
|
|
import Hasura.Base.Error
|
|
import Hasura.EncJSON
|
|
import Hasura.Prelude
|
|
import Hasura.RQL.Types.Common
|
|
import Hasura.RQL.Types.GraphqlSchemaIntrospection
|
|
import Hasura.RQL.Types.Metadata
|
|
import Hasura.RQL.Types.Metadata.Instances ()
|
|
import Hasura.RQL.Types.SchemaCache.Build
|
|
|
|
runSetGraphqlSchemaIntrospectionOptions ::
|
|
(MonadError QErr m, MetadataM m, CacheRWM m) =>
|
|
SetGraphqlIntrospectionOptions ->
|
|
m EncJSON
|
|
runSetGraphqlSchemaIntrospectionOptions introspectionOptions = do
|
|
withNewInconsistentObjsCheck $
|
|
buildSchemaCache $
|
|
MetadataModifier $
|
|
metaSetGraphqlIntrospectionOptions .~ introspectionOptions
|
|
return successMsg
|