I am trying to write a query for GetMongo that gives me documents added in
the last five minutes. It looks like this:

{
    "ts": {
        "$gte": new Date(ISODate().getTime() - (1000 * 60 * 5))
    }
}

The processor goes to an invalid state because it says "query validated
against [that query] is invalid because org.bosn.json.JsonParseException."
Does anyone know how to convert that query from the Mongo command
shell-acceptable syntax into one NiFi can accept?

Thanks,

Mike

Reply via email to