with

fun with(key: String, value: String): T(source)
fun with(key: String, value: Boolean): T(source)
fun with(key: String, value: Long): T(source)
fun with(key: String, value: Double): T(source)

A copy with the option key set to value.


fun with(key: String, value: Field): T(source)

A copy with the option key set to a reference to the field value. The JS SDK sends a field reference only as a nearest-neighbour search's distance field or an unnest's index field; on JS and wasmJs any other fails the execution.


fun with(key: String, value: RawOptions): T(source)

A copy with the option key set to the options value.