
ftl.data.mongo.method.$$MongoRepositoryEstimatedDocumentCountsMethodBodyTemplateftl Maven / Gradle / Ivy
<#-- -------------------------------------------------------------------------------------------------------- -->
<#if RETURN.mono>
return Mono.from(collection.estimatedDocumentCount());
<#-- -------------------------------------------------------------------------------------------------------- -->
<#elseif RETURN.future>
return new PublisherToRequiredMonoFutureAdapter<>(
collection.estimatedDocumentCount(),
useOptionalExceptionSupplier(${RETURN.simpleReactiveType}.class, ${RETURN.simpleResultType}.class)
);
<#-- -------------------------------------------------------------------------------------------------------- -->
<#elseif RETURN.single>
return Single.fromPublisher(collection.estimatedDocumentCount());
<#-- -------------------------------------------------------------------------------------------------------- -->
<#else>
//"RxMicro does not know how to generate this method";
#if>
<#-- -------------------------------------------------------------------------------------------------------- -->
© 2015 - 2025 Weber Informatics LLC | Privacy Policy