All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ftl.data.mongo.method.$$MongoRepositoryUpdateExpressionMethodBodyTemplateftl Maven / Gradle / Ivy

There is a newer version: 0.11
Show newest version
<#include "../mongo-lib.javaftl">
<#-- -------------------------------------------------------------------------------------------------------- -->
${createBsonVar('update', UPDATE)}
<#if FILTER??>
${createBsonVar('filter', FILTER)}

<#-- -------------------------------------------------------------------------------------------------------- -->
final Publisher result = collection
        .updateMany(
                <#if FILTER??>filter<#else>MongoQueries.NULL,
                update,
                new UpdateOptions().upsert(${UPSERT?c})
        );
<@returnUpdateResult />




© 2015 - 2025 Weber Informatics LLC | Privacy Policy