Questions tagged as 'mongodb'

1
answer

Problems with the new version of Meteor because of MongoDB

I just installed the new version of meteor 1.4 and I'm following the Alura tutorial. Everything OK at host installation and startup: 3000 and meteor information appeared. But as soon as I create a folder called "models" and insert a file named "...
asked by 20.10.2016 / 01:04
1
answer

Creation of a forum, doubts between which languages to use [closed]

I am creating a discussion forum from scratch, but I already have a good part of the skeleton web like: creation of a topic, respond and view topic. My doubt is between using php (not manjar yet) or jquery plus API, and the database being used w...
asked by 01.07.2016 / 01:07
1
answer

Find in two collections using aggregation

I need to perform a find on two collections in mongodb using aggregation and put the results into a single array. I'm trying to do this, but it does not work. I have the collection Visits and Opportunities and want to summarize the amount...
asked by 16.03.2016 / 15:31
1
answer

Specific element update in a Mongoose array

How to update the following registry:   "_id": "56dd4489800f800000000000", "registro": "2014-09-07T09:06:17.214Z", "stars": 0, "observacoes": [ { "texto": "", "dataResposta": "", "idUsuario": "56dc9f9f68d7078888888...
asked by 07.03.2016 / 10:27
2
answers

Change the value of a global variable within a mongoDB function? [closed]

How can I change, for example, the value of MyVar within the collection.insert function? Thank you! ;)     
asked by 02.04.2016 / 18:42
1
answer

Angularjs, How to create Checkbox to insert array in MongoDb

I have created a collection in mondoDB called Mangas , where it has " name, author, gender and info Gender is array. I have a form that will receive the values name, author and info, Checkbox needs to be filled as Array with values to...
asked by 02.02.2016 / 19:50
1
answer

Add url json event in fullcalendar

I'm using fullcalendar, nodejs, and mongoose. I have already been able to generate the json file. But by passing the path in fullscalendar js, I can not retrieve events. I created a test file in json and called it as follows: script(type='...
asked by 12.06.2015 / 16:06
1
answer

Error connecting MongoDB

I'm having trouble connecting MongoDB. Follow the code: var express= require('express'); var app= express(); var bodyParser= require('body-parser'); var db_string= 'mongodb://localhost/teste' var mongoose= require('mongoose'); var db= m...
asked by 28.04.2015 / 10:52
2
answers

How can I create a DataGridView with Mongodb?

I want to display the DB data in a table, but so far I have been able to do it with a ListView . How can I do this but using a DataGridView ? using System; using System.Collections.Generic; using System.ComponentModel; using System...
asked by 05.12.2014 / 04:56
2
answers

Is it possible to assign ObjectId () to subcollections in MongoDB?

Imagine the following collection: { _id:ObjectId("123456..."), user:"João", artigos:[ { id: new ObjectId(), titulo:"Lorem ispsum.", texto:"Lorem ipsum dolor sit amet..." } ] }...
asked by 26.05.2014 / 19:09