Commit 364f8e17 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[graphql] update morpheus, attempt at dropping prefix for models

parent bab99b96
......@@ -24,7 +24,7 @@ Portability : POSIX
module Gargantext.Database.Admin.Types.Hyperdata.User
where
import Data.Morpheus.Types (GQLType)
import Data.Morpheus.Types (GQLType(typeOptions), defaultTypeOptions)
import Gargantext.Prelude
import Gargantext.Core (Lang(..))
import Gargantext.Database.Admin.Types.Hyperdata.Prelude
......@@ -37,7 +37,11 @@ data HyperdataUser =
HyperdataUser { _hu_private :: !(Maybe HyperdataPrivate)
, _hu_shared :: !(Maybe HyperdataContact)
, _hu_public :: !(Maybe HyperdataPublic)
} deriving (Eq, Show, Generic, GQLType)
} deriving (Eq, Show, Generic)
instance GQLType HyperdataUser where
typeOptions _ = defaultTypeOptions
{ fieldLabelModifier = unCapitalize . dropPrefix "_hu_" }
data HyperdataPrivate =
HyperdataPrivate { _hpr_password :: !Text
......
......@@ -86,6 +86,9 @@ extra-deps:
commit: 83ada76e78ac10d9559af8ed6bd4064ec81308e4
- accelerate-arithmetic-1.0.0.1@sha256:555639232aa5cad411e89247b27871d09352b987a754230a288c690b6de6d888,2096
- git: https://github.com/morpheusgraphql/morpheus-graphql.git
commit: c8ce69ce4765f0fcb60ecff4d9dd99feaa3314c5
# Others dependencies (using stack resolver)
- constraints-extras-0.3.1.0@sha256:12016ebb91ad5ed2c82bf7e48c6bd6947d164d33c9dca5ac3965de1bb6c780c0,1777
- KMP-0.2.0.0@sha256:6dfbac03ef00ebd9347234732cb86a40f62ab5a80c0cc6bedb8eb51766f7df28,2562
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment