Output

The following table describes the items in the Output tab of the QueryDocument activity.

Output Item Data Type Description
The following item is displayed only when FIND_ONE in the QUERY TYPE list is selected in the General tab.
Document String The first document that matches the query condition.
The following items are displayed only when FIND_MANY in the QUERY TYPE list is selected in the General tab.
Document String All documents that match the query condition, or an empty set if no documents match the query condition.
TotalCount Integer The total number of documents that match the query condition in the specified collection.
RemainingCount Integer The total number of documents that match the query condition but that are not displayed in the output result.
The following item is displayed only when COUNT in the QUERY TYPE list is selected in the General tab.
Count Integer The total number of documents that match the query condition in the specified collection.
The following item is displayed only when DISTINCT in the QUERY TYPE list is selected in the General tab.
Object String The document that contains an array of distinct values of the specified field.
The following item is displayed only when AGGREGATE in the QUERY TYPE list is selected in the General tab.
Document String The document that contains the aggregation result of the map-reduce operation or aggregation pipeline.
The following items are displayed only when the IS GridFS check box, and JAVA_OBJECT in the FILE CONTENT OUTPUT TYPE list are selected in the General tab.
Document String The document that contains data from the queried file.
QueryFileContentStream Java Object The instance of a file stream returned by the QueryDocument activity.
The following items are displayed only when the IS GridFS check box, and BINARY in the FILE CONTENT OUTPUT TYPE list are selected in the General tab.
Document String The document that contains data from the queried file.
BinaryContent Binary The file content returned as Binary.
The following items are displayed only when the IS GridFS check box, and WRITE_TO_FILE in the FILE CONTENT OUTPUT TYPE list are selected in the General tab.
Document String The document that contains data from the queried file.
FileName String The file name returned after using the QueryDocument activity.