Upsert

data class Upsert(val path: String, val key: String, val value: <Error class: unknown class>, val onConflict: <Error class: unknown class>? = null) : MutationAction

"Add it, or adjust the one that is already there." An existing match is merged with onConflict, or replaced by value outright when no onConflict is given; no match appends value. value must carry the key field, since that is what identifies it.

Constructors

Link copied to clipboard
constructor(path: String, key: String, value: <Error class: unknown class>, onConflict: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val key: String
Link copied to clipboard
val onConflict: <Error class: unknown class>? = null
Link copied to clipboard
open override val path: String

The literal RFC 6901 pointer this verb writes at.

Link copied to clipboard
val value: <Error class: unknown class>
Link copied to clipboard
open override val verb: String

The verb name as authored — used to label errors.