Skip to content

Instantly share code, notes, and snippets.

@navsing
Created January 6, 2023 18:51
Show Gist options
  • Save navsing/a70fdb07289c5edb2dc32fdcb24c844e to your computer and use it in GitHub Desktop.
Save navsing/a70fdb07289c5edb2dc32fdcb24c844e 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