Questions tagged as 'mongodb'

1
answer

How to use data from a query in mongoDB? [duplicate]

I want to use the data that is returned from 'find ()' from MongoDB to create a table using the array that returns from MongoDB, and after the table is ready, generate a PDF, but I can not get access to the result data outside the connection f...
asked by 27.07.2017 / 15:41
1
answer

Search and Replace mongodb database

I have several collections in mongodb and I would like to do a "search / replace" for all collections and for each field that is string "http:" replace with "https:" Example: var object = { "_id" : ObjectId("58e7c7a5b03d4641f2aad7bb"),...
asked by 11.04.2017 / 19:05
1
answer

Heroku - Connetar with mongoDB addon mLab

I need to connect to the Mongo database using the mLO addOn. But I'm not able to insert or list, when running in local mode is working. I have the variable set: Anyideawhatitmightbe?Myapp.jsvarexpress=require('express');varpath=require('path...
asked by 29.10.2016 / 12:45
1
answer

Mongoose - Single object in an array

I'm new to MongoDB and Mongoose, I'd like to ask a question. I would like to store multiple objects in an array, and the object must be ONLY ONLY in that array, based on a string. See the example below: var list = { name: "List 1", reci...
asked by 31.05.2016 / 15:35
2
answers

image upload with meteor

How do I upload an image in meteor ? I followed this tutorial here but it did not work too much. The image is apparently saved, because I checked the collection and there is a record there, but I can not even list it, much less a directo...
asked by 20.12.2015 / 05:58
1
answer

Lock on mongoDB

Well guys, I'm using mongodb to develop projects in college, I'd like to know (documentation is weak on Mongo's website link ) how does the lock work on it, with breakdown, if it's locking the whole bank in the collection.     
asked by 05.03.2016 / 03:24
2
answers

Remove Duplicate Records MongoDB

I have a collection with the field called "contact_id". In my collection I have duplicate records with this key. How can I remove duplicates, resulting in only one record? Already tried: db.Person Duplicate.ensureIndex ({ "contact_id": 1},...
asked by 29.02.2016 / 20:06
1
answer

Find in mongoose bank by Nodejs

I'm trying to access the mongoose database by doing a find on the nodejs. In mongoose, I have the following data: Client:{ name: {type: String, trim: true, required: false, default: ""}, address:{ country: {type: String, trim: tr...
asked by 20.07.2015 / 18:45
1
answer

Error installing mongo-hack on Ubuntu 14.04

When installing the mongo-hack on Ubuntu, the following error is being generated:    npm install -g mongo-hacker   |   [email protected] install   / usr / lib / node_modules / mongo-hacker make install       cat config.js base.js hacks /...
asked by 01.02.2016 / 00:15
1
answer

Configure Relational and Non-Relational databases in the same project with Spring-Data + Hibernate

I'm trying to create a Java application where I need to set up two databases: MongoDB and MySQL. My idea is to use Spring-Data with Hibernate for both banks, but I found only tutorials for setting up Cross-Store between the banks. Is there an...
asked by 08.04.2015 / 00:06