1 {-# LANGUAGE DeriveAnyClass #-}
2 {-# LANGUAGE DuplicateRecordFields #-}
4 module Gargantext.API.GraphQL.NLP
11 import Data.Morpheus.Types
16 import Gargantext.API.Prelude (GargM, GargError)
17 import Gargantext.Core (Lang(..), allLangs)
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 :: LanguagesArgs -> GqlM e env [Lang]
29 resolveLanguages LanguagesArgs { } = pure $ allLangs