Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
If John Doe switches jobs and heads over to Microsoft, we can UPDATE his data
Contacts(context)
.update()
.contacts(johnDoe.toMutableContact().apply {
setOrganization {
company = "Microsoft"
title = "Newb"
}
emails().first().apply {
address = "john.doe@microsoft.com"
}
})
.commit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment