Questions tagged as 'mongodb'

1
answer

How to ensure api's rest security

I am creating a system using the MEAN Stack and I had a question .. My angled client application makes a request for api ex: POST link If some malicious user finds the api url he could do a post without going through the client of my app...
asked by 08.11.2016 / 02:29
1
answer

Complex search with MongoDB

I have a structure in mongoDB that has different quantity of items inside an array called "items". To do the search, I am using the command below, which first transforms the content into string, because below this.items there is a different stru...
asked by 24.10.2016 / 13:02
1
answer

Reuse of connections on Nodejs + Mongoose

I'm now starting with Node and I used Mongoose to make my database connections to MongoDB. I put 1 log in my application, every time I open the connection it will print in this log. What happens: Every time someone calls my URL, my Node appli...
asked by 12.08.2016 / 22:06
1
answer

Show user name responsible for such non html ID

I'm not sure what to do, but I'm not sure what to do. When creating a new topic, this topic creates an ID or each topic has yours.  In the Index there is a list of topics created and an access button that leads to a certain topic. My question is...
asked by 06.08.2016 / 04:44
1
answer

Search for mongodb in PHP

I'm having trouble returning records with a date filter. I have the following JSON document: { "_id": "111090485635468_1098582396886267", "1098582396886267_1098592810218559": { "fb_id": "1098582396886267_10985928102...
asked by 30.07.2016 / 16:34
1
answer

MongoDB extension not found in PHP 5.6

I'm developing an application in PHP 5.6 with Laravel 5.2 using MongoDB. The problem came up when I decided to upgrade my Mac to El Captam in a clean installation, because when I installed PHP 5.6 with Brew along with the MongoDB extension, t...
asked by 04.05.2016 / 20:00
1
answer

Mongodb query and return specific array elements within objects

Well, I need a help to query certain values in a document. I have a collection in the mongo that follows this structure, including this is the document I can get and find: link The find this easy I find document without problems using th...
asked by 06.01.2016 / 14:10
2
answers

Query using Mongoose in Nodejs always returns null even within asynchronous method

I'm trying to retrieve a document in my Database using Mongoose in Node.js but it always returns Null. My problem before was the asynchronous method, but now everything is running inside it. And I'm just trying to print the recovered document fr...
asked by 23.07.2014 / 17:01
1
answer

How to control the filters of a persistent query in mongodb

I have this query in my api: @Query("{$and: [" + "{'online': ?5}, " + "{'locations.appointmentTimeRanges.weekday': ?6}, " + "{'specialties.name': ?7}, " + "{'healthInsurances.name' : ?8}"...
asked by 22.08.2018 / 14:40
1
answer

Browse dates and other dates in Python

Good morning, I have a database in Mongo DB like this: { "_id" : ObjectId("5addb57d0043582d48ba898a"), "base" : "EUR", "date" : "2018-04-23", "rates" : { "BRL" : 4.175076 } { "_id" : ObjectId("5addb57d0043582d48ba898a"), "base" : "EUR", "...
asked by 14.05.2018 / 12:54