Skip to content

Instantly share code, notes, and snippets.

@hsmnzaydn
Created January 19, 2021 05:16
Show Gist options
  • Save hsmnzaydn/8545dbfb316fb962ef841cfc0a1e71d6 to your computer and use it in GitHub Desktop.
Save hsmnzaydn/8545dbfb316fb962ef841cfc0a1e71d6 to your computer and use it in GitHub Desktop.
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