insert

inline suspend fun <T> insert(id: String, content: T, common: CommonOptions = CommonOptions.Default, transcoder: Transcoder? = null, durability: Durability = Durability.none(), expiry: Expiry = Expiry.None): MutationResult

Throws

com.couchbase.client.core.error.DocumentExistsException

if a document with the same ID already exists.