PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Wednesday the 15th of January, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[13:17:42] <QuanRan> hi, im trying to filter the results of my collection based on a creation timestamp ; anyone knows why the filter on this picture returns no results when there should be ? https://imgur.com/kLrUsw8
[13:18:30] <QuanRan> My filter on the creationTimestamp is this: {"features.creationTimestamp": {"$gte": "2017-12-31T23:00:00.000Z"}}
[13:19:11] <QuanRan> I have documents that are after 2017-12-31, so i don't understand why i get no results
[13:55:10] <GothAlice> QuanRan: Potentially the same problem as https://stackoverflow.com/questions/55386030/mongodb-cant-query-subdocument-by-id-returns-null/55386123#55386123 except not about IDs, but dates. What you've queried for is not a date, it's a string. A text string. What's the actual value of one of those "features.creationTimestap" fields?
[13:55:21] <GothAlice> If it's an ISODate, then you must cast, as per that SO answer.
[22:21:23] <jnewt> i'm trying to upgrade mongodb by following this: https://docs.mongodb.com/manual/release-notes/3.6-upgrade-standalone/
[22:25:27] <jnewt> when the application that uses mongo starts, i am getting a UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.4 before attempting to upgrade to 3.6. I am not sure what I did wrong. i ran the commands in the upgrade document, but have no direct experience with mongo
[22:26:28] <jnewt> I ran this: db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } ) and got 3.4, installed the 3.6, changed it with this: db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } ) reran the check and it shows 3.6
[22:32:09] <jnewt> i also ran mongod --upgrade, but that didn't make any difference