esecules commented on a change in pull request #4281:
URL: https://github.com/apache/nifi/pull/4281#discussion_r427439135



##########
File path: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/RunMongoAggregation.java
##########
@@ -121,6 +126,7 @@
 
         final Set<Relationship> _relationships = new HashSet<>();
         _relationships.add(REL_RESULTS);
+        _relationships.add(REL_EMPTY);

Review comment:
       In the GetMongo processor there's an option to "Send Empty Result" 
instead of creating another relationship, what about adding this option instead 
for symmetry. This option sends an empty JSON object out the success 
relationship if there's no result.
   
   I had the same issue with GetMongo and the "Send Empty Result" fixed my 
issue.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to