Log file Viewer
Help
|
Karma
| Search:
#mongodb logs for Thursday the 2nd of April, 2020
(
Back to #mongodb overview
) (
Back to channel listing
) (
Animate logs
)
[
00:00:07
] <
asdfgh
> hello
[
00:09:12
] <
c4017
> hi
[
23:15:03
] <
advorak
> Hi there ... https://gist.github.com/advorak/c3a741824d009dc57ff32f50437a5af1
[
23:15:22
] <
advorak
> I'm having trouble using new Date() on an updateMany field referencing another field $date.date_gmt ...
[
23:15:29
] <
advorak
> What am I missing? :-)
[
23:18:33
] <
advorak
> It looks like I want $dateFromString, but I'm not sure I'm using it properly ...
[
23:19:42
] <
advorak
> Oh I think I got it! db.episodes.updateMany({},[{$set: {created_at: {$dateFromString: {dateString:("$data.date_gmt")}}}}])
[
23:19:50
] <
advorak
> Thanks for your confidence #mongodb! :-)