New issue
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
Morpheus GraphQL Client with Safe Queries/Mutations #200
Comments
Vision:schema :: IO GQLSchema
schema = <get schema from GQL Api or doc file>
query schema [gql|
query GetHero ($id: Int ) {
name
hobby (id:)
age
}
] should:
data GetHero = GetHero {
_name :: Text,
_hobby :: Maybe Text
_age :: Int
}
data GetHeroArgs = {
_id :: Int
}
so that : fetchFromServer :: Request -> IO Value
fetchFromServer req = <fetch value from server>
fetchHero :: IO (Either Error GetHero)
fetchHero = fetch fetchFromServer (GetHeroArgs { id = 2 }) @sordina , if there is something to add please let me know. |
nalchevanidze
changed the title
Safe Queries/Mutationss
Morpheus GraphQL Client with Safe Queries/Mutationss
Aug 14, 2019
nalchevanidze
changed the title
Morpheus GraphQL Client with Safe Queries/Mutationss
Morpheus GraphQL Client with Safe Queries/Mutations
Aug 14, 2019
in release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spinning off from #184
Let me know if this is a duplicate issue!
The text was updated successfully, but these errors were encountered: