graphql-engine/server/src-lib/Hasura/RQL/DDL/GraphqlSchemaIntrospection.hs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
601 B
Haskell
Raw Normal View History

module Hasura.RQL.DDL.GraphqlSchemaIntrospection
( runSetGraphqlSchemaIntrospectionOptions,
)
where
import Control.Lens ((.~))
import Hasura.Base.Error
import Hasura.EncJSON
import Hasura.Prelude
import Hasura.RQL.Types
runSetGraphqlSchemaIntrospectionOptions ::
(MonadError QErr m, MetadataM m, CacheRWM m) =>
SetGraphqlIntrospectionOptions ->
m EncJSON
runSetGraphqlSchemaIntrospectionOptions introspectionOptions = do
withNewInconsistentObjsCheck $
buildSchemaCache $
MetadataModifier $
metaSetGraphqlIntrospectionOptions .~ introspectionOptions
return successMsg