Questions tagged as 'mongodb'

2
answers

View details Mongodb on Debian

I need a way to see the bd , collections, and MongoDb documents. Since I usually communicate with mongo using mongoose . I would like to know a direct way from the console to access the characteristics of a bd that y...
asked by 12.06.2017 / 02:23
1
answer

How to perform an update with mongoose and nodejs?

I have the following code for an update, the problem is that I do not know if more than one field can be updated and if so, how would it be? Boleta.update({serie: serie}, {firma: parametros}, function (err, firma){ if (err) {...
asked by 02.02.2017 / 22:50
1
answer

How to configure Time Zone in MongoDB

As you can configure the time zone for mongodb, when you insert an insert in mongo with new Date (), you register 5 additional hours. for example:    db.publication.insert ({_ id: 1, date: new Date ()});   WriteResult ({"nInserted": 1})   db....
asked by 19.10.2016 / 19:20
2
answers

Check if it exists before saving in moongodb and nodejs

I need to store an array in my MondoDB database. This I do without problems with the following code: My array of objects: [ { name: '1', type: 'float', value: 89.05, timestamp: 1535440000 }, { name: '10', type: 'float', value: 19.67, time...
asked by 05.09.2018 / 11:12
2
answers

Mongo DB does not connect to C # .NET

I have a project in C # .NET in which I referenced the necessary drivers to use mongo in this language, until then, everything is correct. However, there is no type of reaction on the part of the database when I execute the following code: usi...
asked by 21.10.2017 / 12:32
2
answers

C # MongoDb BsonDocument Add subdocument with a new ObjectId

Starting from: Class that adds a subdocument to a document public Boolean AggregateSubdocument(string nameCollection, string idDocument, string nameSubdocument, object subdomcument) { BsonDocument newSubdocument = BsonDocume...
asked by 27.10.2017 / 17:04
1
answer

Nodejs, Mongodb and Promises

I need to know how to execute Nodejs in a correct and orderly way:    Connect with Mongo.    Execute query (Insert, Select, Update, Delete)    Return results    Close connection.    My idea is that whenever you need to make a query, c...
asked by 16.05.2017 / 05:17
1
answer

unable to start mongod

Good afternoon, I'm following a course on mongoDB created by openclassrooms . However after installing it by link it was not able to use it with the commando mongodb . In effect it tells me that there is a ERROR: dbpath (/data/db) do...
asked by 06.04.2017 / 21:27
1
answer

MongoDB arrays search

Hi, I've been looking for information for a couple of days to be able to do this search    Search the books written by 2 authors I'll capture you how it's stored in my MongoDB I get used to the idea that "author" is an array and...
asked by 06.02.2017 / 17:27
1
answer

Regular expression that matches a range of hours within a string

I would like to know if it is possible, through a regular expression, with a string containing the date and time, to know if the time is within a given range. For example: 2016-10-17T08:44:04.000+0000 I would like to know if the time wit...
asked by 07.11.2016 / 12:15