Questions tagged as 'mongodb'

0
answers

Mongoose Populate 2 arrays

I have a collection of products and another on the replacement of stock of the product. What I'm looking for is that when you get the products, all the product's stock dates appear, something like this: { "ok": true, "producto": { "rep...
asked by 06.04.2018 / 00:34
0
answers

How can I solve the error (25,13) of android studio 3.0?

Error:(25, 13) Failed to resolve: org.mongodb:stitch:1.0.0-SNAPSHOT Show in Filw Show in Project Structure Dialog This is what appears when I try to compile the App. I am trying to use MongoDB Stitch and place in build.Grandle (Project test...
asked by 21.11.2017 / 05:39
1
answer

Start mongodb?

I just installed mongodb on my pc, which has Linux operating system with antergos distribution. The command does not seem to work: sudo service mongod start I also tried only with: service mongod start and it still does not work Does anyon...
asked by 12.10.2017 / 15:23
1
answer

Duplicate call to 'open' using mongoose

Good, starting at node.js and mongodb I'm first with a problem that I do not know if it is such. Having the server.js files as simple as 'use strict'; var http = require('http'); var express = require('express'); var bodyParser = require('b...
asked by 17.10.2017 / 14:29
0
answers

Prevent hibernate from inserting the name of the class in mongoDB

I have a person entity with two simple fields: class Customer { @Id String id String firstName String lastName } by doing a simple save on that entity, using spring mongo repository: repository.save(new Customer(firstName:...
asked by 13.09.2017 / 10:01
0
answers

React + Redux + REST [closed]

I present my doubt: I have to do a REST API for external clients. I need to have 3 different applications, 1 for internal use, 1 for external use and the API, which will be connected (apart from external clients) to the other 2 application...
asked by 26.09.2017 / 09:39
1
answer

Python / MongoDB - Problem with query including "OR" & "LIKE"

I have the following code that according to user information of a HTML form looks for a record in the MongoDB database: # -*- coding: utf-8 -*- import json from pymongo import MongoClient Conector = MongoClient('localhost:27017') Usuario_...
asked by 14.09.2017 / 16:52
2
answers

update on mongodb nodejs

I'm trying to put a put on mongodb using the findByIdAndUpdate method but it does not work, it does not show any errors, it just does not update the data. This is my code: function updateNota(req, res){ let notaId = req.params.notaI...
asked by 09.08.2017 / 04:07
0
answers

Help in Mongoose and mongoDB with linked queries

I'm passing a query I made and it works on mongoDB to mongoose and it gives me an error. The query in mongo DB is: db.facturas.find({ _id: {$in: db.detalles.distinct("id_factura",{category: ObjectId("5889eae21ffcc6da2c6b4ae4")})}...
asked by 14.08.2017 / 23:36
0
answers

How to send data through a post request in NodeJS to the database in MongoDB?

I'm doing an App, which has a registry for users. I try to make that when the user enters the data they are sent to the database through that POST request. The database appears connected to me, but I can not find the code to send the data. Th...
asked by 23.06.2017 / 17:34