1 {-# LANGUAGE DeriveAnyClass #-}
2 {-# LANGUAGE DuplicateRecordFields #-}
4 module Gargantext.API.GraphQL.IMT
11 import Data.Morpheus.Types
16 import Gargantext.API.Prelude (GargM, GargError)
17 import Gargantext.Core.Ext.IMT (School(..), schools)
18 import Gargantext.Prelude
19 import GHC.Generics (Generic)
23 { } deriving (Generic, GQLType)
25 type GqlM e env = Resolver QUERY e (GargM env GargError)
28 :: SchoolsArgs -> GqlM e env [School]
29 resolveSchools SchoolsArgs { } = pure $ schools