Skip to content

Instantly share code, notes, and snippets.

@wb-softwares
Created June 16, 2020 22:37
Show Gist options
  • Save wb-softwares/c02238964e59198fe38505c48b93da87 to your computer and use it in GitHub Desktop.
Save wb-softwares/c02238964e59198fe38505c48b93da87 to your computer and use it in GitHub Desktop.
Network.shared.apollo.perform(mutation: CreatePersonMutation(input: personInput)) { result in
switch result {
case .success(let graphQLResult):
print(graphQLResult)
case .failure(let error):
print("Failure! Error: \(error)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment