Questions tagged as 'mongodb'

1
answer

Backup and Restor Mongodb - Methods

I'm starting on mongodb, linux platform. I would like to know the best backup strategy since: Date import and Export - are used for cvs or json outputs  Mongodump and Mongorestore - are used for small bases. Anyway, what's the best tool?...
asked by 17.07.2017 / 22:36
0
answers

Return record only for bets more recent than the current time

I wanted to return this record only if all apostas.horario was greater than the current time, how can I do this in mongodb?     
asked by 17.06.2017 / 00:34
0
answers

KeystoneJS with Mongo remote

Good evening! I'm starting to study KeystoneJS versão 0.3.17 . Following "Getting started" from the official website, we ask for nodejs and mongodb , but I want to use this cloud service from mongodb . How could you do this...
asked by 01.06.2017 / 01:32
1
answer

Run mongoimport command via C #

I need to run the mongoDBD command from mongoDB via code but it is not right: 'pro.FileName = "cmd.exe"; //pro.UseShellExecute = false; pro.Arguments = @"/k cd C:\Program Files\MongoDB\Server.4\bin\";...
asked by 05.05.2017 / 03:33
1
answer

How to group and aggregate child items in MongoDB?

I'm developing a Web Services REST application with Spring Boot and need to group the goals by players in order to show the scorers from the following records: [ { "id": 1, "adversario": "Dois irmãos", "dataRealizacao": "2017-02-...
asked by 13.02.2017 / 20:20
1
answer

Relate Nodejs modules with Services Angularjs - Electron

Hello, everyone! I am starting a study in electron and in this application I am using angularJS, the detail is that I do not understand much about, and I can not think of a way to use the Node without the server being running, I would finall...
asked by 10.02.2017 / 18:22
0
answers

Mongodb: Find every x days

[Mongodb] Staff, I have the following situation: I have several documents saved with the following structure: { ..., repetir : "semanal", a_cada: 2 } In short, I have a cron running daily and I need to fetch the documents according to the c...
asked by 21.12.2016 / 00:08
0
answers

How to model a friend system with MongoDB?

I am creating a small social network and I need to create the share of friendships. I have two ideas: A Friendship collection containing the sender, recipient, and response fields and make a populate with mongoose. Put a Friend o...
asked by 19.12.2016 / 19:58
2
answers

Auth rules with NodeJS + Passport + MongoDB [closed]

Let's doubt it. I am using a blog as an example. I have the Administrator. It makes a full CRUD inside the system. In addition to it I have the Editor and Reviewer. The Editor creates blog posts, but does not publish. And the Reviewer, sees and...
asked by 18.11.2016 / 17:26
1
answer

Update array in subdocument MongoDB

I'm trying to do an update here in the mongoshell and I'm having trouble. I have the following json: { "_id" : ObjectId("56cc03c16f4e85f538ef79ae"), "contact_id" : NumberLong(1000295524418), "gender" : 1, "phonetic_gender" : 1, "first_name...
asked by 01.09.2016 / 16:25