We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we define a custom record wrapper?
I see that there is the EncodeWrapper and DecodeWrapper type classes, by I'm not sure if this is the full story: https://hackage.haskell.org/package/morpheus-graphql-0.18.0/docs/Data-Morpheus-Types.html#t:EncodeWrapper
EncodeWrapper
DecodeWrapper
I'd like to be able to use Yesod's Entity datatype: https://hackage.haskell.org/package/persistent-2.14.0.0/docs/Database-Persist-Class-PersistEntity.html#t:Entity so that an Entity Person would be serialized to the following:
Entity
Entity Person
Entity_Person { id :: Int , model :: Person }
I am not sure, but it seems to me I am missing context on how TypeData works, and what is relevant there, and how to use it:
morpheus-graphql/morpheus-graphql-server/src/Data/Morpheus/Server/Types/GQLType.hs
Line 140 in f9bd0cb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How do we define a custom record wrapper?
I see that there is the
EncodeWrapper
andDecodeWrapper
type classes, by I'm not sure if this is the full story:https://hackage.haskell.org/package/morpheus-graphql-0.18.0/docs/Data-Morpheus-Types.html#t:EncodeWrapper
I'd like to be able to use Yesod's
Entity
datatype:https://hackage.haskell.org/package/persistent-2.14.0.0/docs/Database-Persist-Class-PersistEntity.html#t:Entity
so that an
Entity Person
would be serialized to the following:I am not sure, but it seems to me I am missing context on how TypeData works, and what is relevant there, and how to use it:
morpheus-graphql/morpheus-graphql-server/src/Data/Morpheus/Server/Types/GQLType.hs
Line 140 in f9bd0cb
The text was updated successfully, but these errors were encountered: