update

open fun update(entities: Iterable<Entity>)
open fun update(firstEntity: Entity, vararg entities: Entity)

Update all given entities.

Parameters

entities

the entities to update

See also


open fun update(entities: Stream<Entity>)

Update all given entities.

Parameters

entities

the entities to insert

See also


@GenerateBridge
open fun update(update: String, vararg params: Any?): PanacheUpdate

Update all entities of this type using the given update document with optional indexed parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.

Return

a new io.quarkus.mongodb.panache.common.PanacheUpdate instance for the given update document

Parameters

update

the update document, if it didn't contain any update operator, we add $set. It can also be expressed as a query string.

params

optional sequence of indexed parameters

See also


@GenerateBridge
open fun update(update: String, params: Map<String, Any?>): PanacheUpdate

Update all entities of this type by the given update document with named parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.

Return

a new io.quarkus.mongodb.panache.common.PanacheUpdate instance for the given update document

Parameters

update

the update document, if it didn't contain any update operator, we add $set. It can also be expressed as a query string.

params

map of named parameters

See also


@GenerateBridge
open fun update(update: String, params: Parameters): PanacheUpdate

Update all entities of this type by the given update document, with named parameters. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.

Return

a new io.quarkus.mongodb.panache.common.PanacheUpdate instance for the given update document

Parameters

update

the update document, if it didn't contain any update operator, we add $set. It can also be expressed as a query string.

params

Parameters of named parameters

See also


@GenerateBridge
open fun update(update: Bson): PanacheUpdate

Update all entities of this type by the given update BSON document. The returned io.quarkus.mongodb.panache.common.PanacheUpdate object will allow to restrict on which document the update should be applied.

Return

a new io.quarkus.mongodb.panache.common.PanacheUpdate instance for the given update document

Parameters

update

the update document, as a Document.

See also