Given a document's key, you can use the collection.upsert() function to create/update a document in a collection.
See more at the SDK documentation on Kotlin Getting Started.
API reference can be found here.
See more at the SDK documentation on Kotlin Getting Started.
API reference can be found here.
To run this example, click the button in the top right corner of the code editor.