Created
January 19, 2021 05:16
-
-
Save hsmnzaydn/8545dbfb316fb962ef841cfc0a1e71d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lifecycleScope.launchWhenResumed { | |
val response = try { | |
apolloClient(requireContext()).mutate(LoginMutation(email = Input.fromNullable("serkan.zaydn@gmail.com"))).toDeferred().await() | |
} catch (e: Exception) { | |
null | |
} | |
val login = response?.data?.login | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment