Questions tagged as 'mongodb'

1
answer

Error creating Feed with Ruby on Rails

I'm creating a Microposts Feed , with Ruby on Rails and MongoID. When accessing the user's profile, I get the following error, which I think derives from feed in the user.rb file. The error that shows me is the following undefined...
asked by 21.09.2018 / 11:52
0
answers

Consulta MongoDB - Know how many people improved their points compared to the previous month

I would like to know how to make a query in MongoDB that will return how many people from my database improved in points with respect to the previous month . The fields of the bbdd would be something like this: { id_persona : "1", fecha :...
asked by 21.09.2018 / 08:59
1
answer

Error Mapping with Spring Boot and Mongodb

Trying to create a Rest application, but at the moment of making the query it does not look for the address that I have in my machine package com.mongo.controlador; import com.mongo.entidades.usuario; import com.mongo.repositorio.repositoriou...
asked by 15.09.2018 / 00:03
0
answers

MONGODB DSN ODBC ERROR

Hi, I'm trying to connect to this mongodb server and it's impossible, some idea. Thank you very much     
asked by 04.10.2018 / 14:39
0
answers

Display data in an html of a mongo database and generate a statistics

Very nice people ... I am with a small problem in which I am breaking my head ... I am working with node.js and mongodb ... I have a table with several records with different ids ie each record has its id own in which it is already assigned as a...
asked by 14.09.2018 / 02:22
0
answers

Mongoid :: Errors :: NoClientConfig:

Database error when trying to make a migration from this, to production. I am using minitest , instead of rspec . I have already reviewed the configuration of the file   no_client_config.rb and is set as it should be. I do...
asked by 17.09.2018 / 14:13
1
answer

Search for a record in mongoDB by a ruc number

I need to look for a record in mongoDb by the NUMERO_RUC using node.js, try for findById and it works perfectly but I want to search for other data that is not the id, you can help me I do not know where my fault is. Method to obtain a record...
asked by 02.09.2018 / 21:57
0
answers

NoMethodError: undefined method 'users' - Ruby on Rails

When running the console command 'rails test' I get the following error, referring to the file user_controllers_test.rb The Error: The file user_controllers_test.rb According to the console in error, it is in the line that con...
asked by 02.09.2018 / 19:18
0
answers

How to make a trigger (trigger) in mongodb?

What I want is to make a record of all the movements made in the database, for this I plan to use a table blog which has the following structure: bitacora = { _id, action: String, userId: String, create_at:{ type: Date, defau...
asked by 28.08.2018 / 09:25
1
answer

Only get populate data on mongoose

I'm just trying to get data from a mongo query but I just need what the populate brings in an object, these are my models: In this I have a collection of services (services): var categoriesSchema = new Schema ({ _id: { type: String, req...
asked by 24.08.2018 / 14:29