Skip to content

Instantly share code, notes, and snippets.

@LukyanovAnatoliy
Created April 18, 2019 22:09
Show Gist options
  • Save LukyanovAnatoliy/3dc2c8ba9c8f35b16ea6044b091a4457 to your computer and use it in GitHub Desktop.
Save LukyanovAnatoliy/3dc2c8ba9c8f35b16ea6044b091a4457 to your computer and use it in GitHub Desktop.
remoteDB.collection("Tasks")
.document("New task")
.set(mapToRemoteTask(task))
.addOnSuccessListener {
// Successful write
}
.addOnFailureListener {
// There was an error while writing
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment