GetMongoRecord 2025.10.9.21

Bundle

org.apache.nifi | nifi-mongodb-nar

Description

A record-based version of GetMongo that uses the Record writers to write the MongoDB result set.

Tags

fetch, get, json, mongo, mongodb, record

Input Requirement

ALLOWED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Batch SizeThe number of elements to be returned from the server in one batch
LimitThe maximum number of elements to return
Mongo Collection NameThe name of the collection to use
Mongo Database NameThe name of the database to use
ProjectionThe fields to be returned from the documents in the result set; must be a valid BSON document
QueryThe selection criteria to do the lookup. If the field is left blank, it will look for input from an incoming connection from another processor to provide the query as a valid JSON document inside of the FlowFile’s body. If this field is left blank and a timer is enabled instead of an incoming connection, that will result in a full collection fetch using a “{}” query.
SortThe fields by which to sort; must be a valid BSON document
get-mongo-record-writer-factoryThe record writer to use to write the result sets.
mongo-client-serviceIf configured, this property will use the assigned client service for connection pooling.
mongo-query-attributeIf set, the query will be written to a specified attribute on the output flowfiles.
mongodb-schema-nameThe name of the schema in the configured schema registry to use for the query results.

Relationships

NameDescription
failureAll input FlowFiles that are part of a failed query execution go here.
originalAll input FlowFiles that are part of a successful query execution go here.
successAll FlowFiles that have the results of a successful query execution go here.

Writes attributes

NameDescription
mongo.database.nameThe database where the results came from.
mongo.collection.nameThe collection where the results came from.