updateManyEncoded(where:to:)

Updates all documents matching the given query with the document encoded from the given model.

Collection+Update.swift:138
@discardableResult func updateManyEncoded<Query, E>(where query: Query, to model: E) async throws -> UpdateReply where Query : MongoKittenQuery, E : Encodable

Parameters

query

The query to match documents with

model

The model to encode into an update document

Returns

The reply from the server

See: https://docs.mongodb.com/manual/reference/command/update/