Questions tagged as 'mongodb'

0
answers

Search for mongo record and update

I need help to make a update in a particular record. Below is the document I want to change. { "_id":"ddc07497-003d-3dff-8f82-24b9b980a568", "date":"2018-04-19T17:14:29.699Z", "messages":[ { "intents":[...
asked by 20.04.2018 / 13:29
1
answer

How to create a jquery object and insert into mongodb via ajax?

I have the following structure in html : <form id="titulo"> <input type="text" name="nome"> </form> <form id="turno1"> <div class="linha"> <input type="text" name="dia"> <input type="text" nam...
asked by 29.03.2018 / 20:38
1
answer

MongoDB ObjectId returning [object Object] in Ajax

In a query I make in MongoDB using Ajax and PHP, when I'm going to manipulate ObjectId already in javascript, it returns me as [Object Object]. How do I use it as a string? Follow the $ code .ajax () $.ajax({ url: 'funcoes/registroevent...
asked by 23.03.2018 / 03:20
1
answer

Error when doing aggregate command with $ geoNear from MongoDB

I have a collection called location with the following data: { _id: ObjectId("5a900f4af1b7fd855010c0cf"), car_id: ObjectId("5a85c26a35fdcf1098c23480"), location: { type:"Point", coordinates:[-54.585186...
asked by 23.02.2018 / 18:56
0
answers

How to generate Factory Boy Fuzzy Attribute before running each test?

I'm creating unit tests to perform integration tests for my web application. The tools I am using are: Mongomock to create a temporary instance of the database for testing and Factory Boy to create mock instances of my entities. In each t...
asked by 28.11.2017 / 14:43
1
answer

Date Comparison in MongoDB and NodeJS

I would like to know how I can compare two dates in MongoDB in NodeJS, I'm using mongodb-native. I need to compare the current date with the date that is saved to the bank, in this case the DATETIME field. To understand better in the example...
asked by 15.11.2017 / 18:38
1
answer

View data by clicking on link from Mongo bank

Well, I have the following situation! I have a list of saved records in my Mongo bank, I need to display the list of things I've done and when I click on the product it would open a screen with more details about that product, I'm a newbie in Mo...
asked by 16.11.2017 / 17:40
0
answers

I have a problem creating quickstar with mongodb in aws

How much do I try to create an aws quickstart with mondodb I'm getting this error    The following resource (s) failed to create: [VPCStack]. . Rollback requested by user.   Embedded stack arn: aws: cloudform: us-east-1: 723891204374: MongoDB...
asked by 13.11.2017 / 00:28
0
answers

Adding a Document to an Array in MongoDB

This week, I started messing with MongoDB (I've never had much contact with any DB before) and a question has just come up that I can not solve (I researched, believe). Let's go to the following context: @Listener(targets = ExceptionUnc...
asked by 25.11.2017 / 01:44
0
answers

Charts using ChartJS, Mongodb and Angular

Good evening, I have the following model: var mongoose = require('mongoose'); module.exports = function() { var schema = mongoose.Schema({ nome: { type: String, required: true }, valor: {...
asked by 08.11.2017 / 00:06