Most voted "mongodb" questions
Use this tag when the question refers to a resource, information, or problem that relates exclusively to the Nosql Mongodb database. Mongodb is a scalable, open source, high-performance, schematic, and document-oriented database that supports a large number of application development languages and platforms. Mongodb is recognized as the main Nosql database.
Learn more…587 questions
Sort by count of
-
0
votes0
answers419
viewsNodejs with Relational Database
Guys, I came on a two-way road and I don’t know which one to go on. The problem is this: I’m started developing an application that is basically similar to a social network, will have chat,…
-
0
votes1
answer33
viewsfacebook authentication mongodb Rails
Hello, I am developing an authentication system with facebook, ruby use on Rails and mongodb. I need to integrate the device with the facebook api (understand like any other social network, too),…
-
0
votes1
answer190
viewsHow to transform a JSON that contains an object array into an object list?
Good evening. I have the following JSON: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br", "site":…
-
0
votes1
answer43
viewsHow can I search for a property if I don’t know its name?
In my database mongodb I am saving a document with the following structure: { "_id": "A/B", "Properties": { "Abandoned": { "TypeName": "int", "Name": "A/B/Abandoned", "Value": 2 }, "Busy": {…
-
0
votes1
answer122
viewsProblems with the new version of Meteor because of Mongodb
I just installed the new version of Content 1.4 and am following the tutorial of Alura. Everything was OK on the host:3000 installation and startup, and the Media information appeared. But as soon…
-
0
votes1
answer187
viewsWhich PHP frameworks have better support for working with Nosql databases?
I’d like to know which PHP frameworks have the best support for working with Nosql databases? The Nosql banks I already have experience with are Mongodb, Redis and Cassandra, but I am interested in…
-
0
votes1
answer157
viewsHow do I search different mongodb documents and subdocuments
I wanted to make a find on a screen of login where he checked so much in the field login of the document and login subdocumentation. You can do this? { Login: admin, Senha : 12345, _id :…
mongodbasked 7 years, 3 months ago wedson santos 81 -
0
votes1
answer231
viewsMongodb get records with priority
I have 3 collections in Mongodb being two lists containing only one unique identifier and in collection remaining the unique identifier, name and surname. What I need to do is a query that is sorted…
-
0
votes1
answer231
viewsMongodb - Filtering returns
would like to know how I can be filtering the results returned in my mongodb queries in this my scenario I will have to return the names of the sectors and the contacts relating to each sectors from…
-
0
votes1
answer184
viewsIs it possible to use Node.js in Cpanel?
I intend to make both an app and a website communicate with my database through Node.js. I wonder if any host as the simplest they possess Cpanel(godaddy) has support for Node.js or mongoDB.…
-
0
votes1
answer81
viewsDynamic columns in mongodb view
Hello, I have a job where I need to create a view a db widget, but some columns of this view should be calculated at runtime, similar to mysql NOW(), for example: When I find in the view, I need a…
-
0
votes1
answer492
viewsMongodb: Projection of only one element from one nested array to another nested array to one object
I have the following situation: I need to query a document with a projection that returns only the first element of a list. Only this list is inside another list, and that other list is inside an…
-
0
votes1
answer160
viewsAggregate and lookup in subdocuments
I’m having trouble returning a "Join" on mongodb using lookup on subdocuments. I may have modeled it wrong, if you could give me a few pointers I’d be grateful! :) I have the following collections:…
mongodbasked 7 years, 2 months ago Rafael Jourdan 11 -
0
votes1
answer1042
viewsTransforming string in time in Javascript
I am developing an application in Vuejs and on a screen I have two input’s of hour and are being saved in Mongodb as String. However the input only accepts in the time format and when I click on the…
-
0
votes3
answers3693
viewsHow to build Ios with an IONIC project
Good afternoon, I’m on a project made in Ionic , nodejs and Mongodb. I have access to the code, which are in the BITBUCKET repository but I do not know how to create the project build in Xcode…
-
0
votes1
answer43
viewsIs it possible to visually display another value for a certain value in the bank?
I’m doing a Todo and I need to set priority (urgent, high, medium and low). But I am only able to define through integer (1 is urgent, 2 is high etc) The question is: is it possible to show another…
-
0
votes1
answer155
viewsSet MONGO_URL in a Meteor project within the file Settings.json
I’m starting to work with the Meteor and I’m having a hard time with something that should be simple: changing the connection string with a mongodb itself. I’ve searched the internet, also for…
-
0
votes1
answer94
views$lookup no db.createView()
I have a database of two Collections: companies and people. And I want to create a view called "peopleSectors" from the collection people. db.createView ( "peopleSectors", "people", [ { $lookup: {…
-
0
votes0
answers83
viewsPage is not rendering
I am configuring a web application using Keystone JS. I set up some Routes, and views, and also already set up a "virtual store" structure to add and exlcuir sightseeing tours. The problem, that due…
-
0
votes1
answer115
viewsQuery to catch date difference
I wonder how I can make a query of this type in Mongodb with date difference and picking the last record in a date range. SELECT *, DATEDIFF(NOW(),DATAHORA) AS DIAS FROM TBLTRANSFERS WHERE…
-
0
votes1
answer802
viewsHow to increase the Mongodb connection limit?
Good morning. I have an Ubuntu 16.04 LTS server, hosted on Linode. Last night I spent all night reading articles and testing settings to increase Mongodb’s connection capacity, but nothing worked.…
-
0
votes1
answer40
viewsMongodb finds no record of some names
I’m pulling some data from Mongodb with Codeigniter and came across something strange... Some records are found and others are not. Debugging the code I saw that the problem was the name he is…
-
0
votes1
answer300
viewsHow to transform the feedback (Finditerable) from a query in the database (mongoDB) to a list of objects of type DTO.
Bank structure: >db.produtos.find().pretty(); { "_id" : ObjectId("58879057e53276e2f7bf43be"), "descricao" : "Bisnaguinha", "preco" : 4.8 } { "_id" : ObjectId("58879067e53276e2f7bf43bf"),…
-
0
votes1
answer154
viewsMongodb - Mmapv1 or Wiredtiger?
We started a project with mongodb, at the time testing the Wiredtiger engine. This engine proved to be more interesting due to compressing the data much more than mmapv1. However, sometimes mongodb…
-
0
votes1
answer42
viewsApp name error in Django
In my views, Django 1.10, I have the code: from django.shortcuts import * from appcrud.forms import * def inicial(request): if request.method == "POST": form = FormCrud(request.POST) if…
-
0
votes1
answer72
viewsDoubt about Index for Boolean Fields - Mongodb
I have documents with boolean fields in a mongo collection. To index these fields, is it better that their values are Number (0 or 1) or does it make a difference if they are Boolean? I have…
-
0
votes3
answers430
viewsAssign return of findOne to a global variable Node Node.js
I couldn’t do that assignment, so is there anything missing? global.pedido = db.collection('configuracoes').findOne({ parametro: "pedido_num"})
-
0
votes3
answers378
viewsGet Mongo field value as Variable?
Gentlemen, I’m using this code on the Meteor: var teste = Orders.findOne({name : 'Day'}).day; To Get the day value on this record: {_id: "HzoGFKRmYzmH8Yx6A", name: "Day", day: "Jan 27th 18"} It…
-
0
votes1
answer108
viewsDelete single quotes, double quotes, commas, line breaks and records with the same value as a field in mongodb
I have a collection on Mongodb of Tweets, these records have a field called text, in this field I need to delete records that have the same value besides removing single quotes, doubles, commas and…
mongodbasked 7 years, 8 months ago Thyago Oliveira Pereira 49 -
0
votes1
answer140
viewsQuery return document-specific array’s mongodb
I have the following document called "COURSE": { "_id" : ObjectId("58a300ff3de08a3cdce471be"), "nome" : "Matemática", "turma" : [ { "professor" : { "nome" : "Maria", "usuarioId" :…
mongodbasked 7 years, 8 months ago Marcio.Torquato 3 -
0
votes1
answer111
viewsNumbers are not adding up correctly
I’m doing a search on MongoDB and bringing the sum of some values. It correctly brings the values that are there, adding them up. The problem is when I need to take for example the value 1 and add…
-
0
votes1
answer893
viewsNode JS and Mongodb - Return data from a model to a route
I’m new to Node JS + Mongodb and I’ve had a doubt for a couple of days that I couldn’t figure out how to solve it. My problem is this: I have a file of routes that make a call to a model, as in the…
-
0
votes1
answer251
viewsMongodb for multi-user data
I am developing an application to the best ERP style, but much simpler. It is a program of type MEAN (Mongodb, Express, Angular 2 and Nodejs) and also has a version for Android made with Ionic 2. It…
-
0
votes1
answer95
viewsQuiz Database Schema for Mongodb
Users: [{ - email - senha - quiz_criado: [id: 1], // ref: Quiz (array com id) - quiz_respondido: [{ id: 1 , // ref: Quiz question_respondido: [{ question_id opcao_escolhida }] }] }] Quiz: [{ -…
-
0
votes1
answer28
viewsMongodb on air at AWS
I need a help, I did not find anything practical and exact in google, I have a backend with Node and using Mongoose, and I can run site quietly, because in CMD I run the command 'mongod', and my…
-
0
votes1
answer841
viewsUpdating a field in Mongodb
Considering the following structure: { "_id" : ObjectId("5ad69abb3630404194c80571"), "cnpj" : 2352345234523452, "razao_social" : "Lalala Ltda.", "fantasia" : " "aiufhdiua Ltda.", "dt_criacao" :…
-
0
votes1
answer970
viewsHow to update to Node.js and Mongoose
{ "_id": "58fe27e0e340671c9859c995", "__v": 0, "form": [ { "_id": "58fe2b1de437791cd02b9a8c", "sections": [ { "_id": "58fe2b1de437791cd02b9a8d", "input": { "_type": "radio" } } ] }, { "_id":…
-
0
votes1
answer147
viewsHybrid deployments with PHP Laravel Mysql + Mongodb
I’m developing a system with PHP Laravel + MongoDB. The login and password part will be modeled using MySQL and use MongoDB to make a quiz. I was thinking of putting together a Schema in MongoDB of…
-
0
votes1
answer2250
viewsCreating and changing users and permissions
I have run mongod with the default setting, ie I have not set nor the path, nor the door, nor activated the access control. C:\Program Files\MongoDB\Server\3.4\bin>mongod Trying "more advanced…
-
0
votes0
answers24
viewsVariable xpath saved in Mongo
I have tried it in many ways, but I believe I am missing the point. I would like to save XPATH on Mongodb and import it into item() of Function parse. Is there any way to accomplish ?
-
0
votes0
answers551
viewsWhat is capped Collection?
Hello, I would like to know what is Limited Collection (Capped Collection) and for what we use in Mongodb.
-
0
votes1
answer48
viewsHelp with PHP and Mongodb
Hello. I have an application using PHP and Mongodb and wanted to know if there is any way to keep the connection with mongoDB open. I have the following code that connects to Mongo: private static…
-
0
votes1
answer34
viewsHow to do an sql query in Moongodb with php?
How do the following query sql in Mongo? select * from myDB WHERE nm_pesquisa LIKE "%SAO%" AND tp_m = "A" OR tp_m = "H"; I tried it this way but without success: $query = [ 'nm_pesquisa' =>…
-
0
votes1
answer230
viewsSave() method of Mongoose not saved
I have the following problem: When calling the Mongoose save method it seems to be doing nothing. The save code is as follows:: var newProjects = new projectModel({ "teste":"teste" });…
-
0
votes2
answers319
viewsI can’t connect Mongodb to Node
I’m trying to make a page on which will have a written form Nome and Comentário, when the person fills in the name and the comment will appear under the form. Only that is giving error. Down here is…
-
0
votes1
answer436
viewsSearch for part of string in php?
How to do : db.getCollection('Collection').find({“field”: /.*A.*/}) using PHP Mongodb BSON Regex?
-
0
votes1
answer111
viewsMongodb extension for PHP 7.2.3 on Ubuntu 18.04
I’ve been running Mongodb together as PHP on Ubuntu Server 17 for some time. I recently installed a copy of Ubuntu Server 18.04 and did the same installation procedure. But even including…
-
0
votes1
answer83
viewsChange document after post-save middleware in Mongoose
I’m working with the Mongoose.js And I’m going to need, after I save the document to the database, to be able to change an attribute of that document. From what I understood in the Mongoose…
-
0
votes0
answers15
viewsCodeigniter application does not work with mongodb
I have a codeigniter system and I can’t make requests using mongo_db lib. It is not possible to connect, authenticate and, or search data from the database. I believe that the library is corrupted,…
-
0
votes1
answer286
viewsProblems when starting Mongodb
I’m starting the mongodb studies on Ubuntu 18.04. I installed it, created the dbpath folder, but when starting with the command mongo appears this error message, how can I fix? did the mongod and…