Skip to content

Instantly share code, notes, and snippets.

@ts95
Last active October 4, 2017 18:51
Show Gist options
  • Save ts95/b5b8f13bf3d8a4dce0040dce780dda5b to your computer and use it in GitHub Desktop.
Save ts95/b5b8f13bf3d8a4dce0040dce780dda5b to your computer and use it in GitHub Desktop.
let book = FirestoreBook(
documentID: nil,
isbn: "95-0443-843-0",
title: "Do Androids Dream of Electric Sheep?")
let firestore = Firestore.firestore()
let ref = firestore.collection("books").document()
ref.setModel(book)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment