Questions tagged as 'mongodb'

0
answers

What is capped collection?

Hello, I would like to know what Capped Collection is and what we use in MongoDB.     
asked by 23.04.2018 / 06:29
0
answers

Make Schema field unique for a single field

I have a problem that I am breaking the head: I'm developing a REST API that uses MongoDB and I need Mongoose to not allow insertion via POST into the database fields that are not unique when linked to an ID. Example: {'_id': '1234', 'fi...
asked by 12.04.2018 / 21:54
0
answers

Adding elements to a mongodb database

With a problem, I'm trying to insert a new record in my database, where the entry is a {url: "example.com } I'm using the express framework, the mongodb database and the mongoose library (I've been able to do other things, add an id, delete an i...
asked by 15.04.2018 / 05:08
0
answers

MOngo DB Filter

I have the following document break in my collection { "_id" : "908f9ffb-b0b7-f020-381a-d02b75d095e9", "messages" : [ { "intents" : [], "entities" : [], "input" : { "date" :...
asked by 05.04.2018 / 23:05
1
answer

How to iterate PHP array received as JSON? [duplicate]

I have the following JSON , which I create by JSON.stringify(dados method), and I pass via ajax to php : {"nome":"nome_da_pessoa", "registro":"registro_da_pessoa", "departamento":"_$oid/5aac50..."} When I get int...
asked by 26.03.2018 / 03:54
1
answer

MongoDB on the air at AWS

I need a help, I did not find anything practical and accurate in google, I have a node backend and using mongoose, and I can run locally quietly, because in CMD I execute the command 'mongod', and my mongo local is in the air, and I connect by c...
asked by 22.03.2018 / 14:50
0
answers

Query with Mongoose

I have the following key: How can I make a query that returns all values (values of the composition key and measureUnityId. Return the name, for example) using NodeJS + Mongoose?     
asked by 21.03.2018 / 16:14
1
answer

Error Unsupported projection option: $ project "code": 2, "codeName": "BadValue"

I would like to do a search where I want only the records where watson is equal to true and node-visited is equal to Bem-vindo Iwasdoingitthiswaydb.getCollection('conversations').find({'watson':true},{$project:{me...
asked by 07.03.2018 / 14:36
0
answers

C # & MongoDb - How to make filter in child document?

I'm starting my adventures in MongoDB and I'm having a problem specifically with document filtering. The template for my application: public class MatrizCurricular { [BsonId] public ObjectId _id { get; set; } public string Cur...
asked by 03.03.2018 / 21:51
0
answers

openpyxl generating corrupted workbook

I'm getting some data from MongoDB and sending it to Excel. I'm using openpyxl but some workbooks show the following error when I open them:    "we found some problem with some content in excel ...". Could anyone help me? Code: ws =...
asked by 26.02.2018 / 11:21