PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 6th of April, 2021

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[20:27:39] <ario_> Do we use mongoimport/mongoexport for doing db backups?
[20:27:51] <ario_> I want to create a new mongodb instance and export/import into it
[20:58:44] <Bradipo> I'm trying to update a java class that uses org.mongodb.morphia.query.UpdateResults to use the newer APIs.
[20:58:55] <Bradipo> I'm guessing that it would be these:
[20:58:57] <Bradipo> https://morphia.dev/morphia/2.1/javadoc/dev/morphia/query/Query.html
[20:59:46] <Bradipo> Hmm, my pom says 1.0.1 for morphia, so maybe that's also a problem...
[21:03:02] <Bradipo> At any rate, the error I get is that "type org.mongodb.morphia.query.UpdateResults does not take parameters"
[21:03:24] <Bradipo> So I'm trying to find out which method I should be using now (since clearly this java class is using deprecated APIs).
[21:04:03] <Bradipo> The line of code that is complaining is:
[21:04:28] <Bradipo> UpdateResults<Result> results = datasource.update(upQuery, upOps);
[21:04:42] <Bradipo> datasource, of course being org.mongodb.morphia.Datastore
[21:09:36] <Bradipo> If there's a better channel for this, please let me know.