nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Thomsen <>
Subject Representing date queries properly with GetMongo
Date Fri, 23 Jun 2017 13:06:30 GMT
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?



View raw message