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
-
-1
votes1
answer137
viewsValidationerror: companies validation failed: county: Path `county` is required
I can’t see the mistake that keeps me from POST (store the data in the database). Also, in the form when selecting a country he should only take his cities, instead he calls all cities and…
-
-1
votes2
answers89
viewshow to use the cursor in the mouse
when I will make the requisition to take the amounts of debts and credit of this error: { "errors": [ { "name": "MongoError", "message": "The 'cursor' option is required, except for aggregate with…
-
-1
votes1
answer267
viewsLogin with CPF with Nodejs, Reactjs and Mongodb
Well I built an API for registrations in the remote mongodb database (Atlas), I can register, the intention is to offer a form for the user data(Name, Cpf, phone) and then do the CPF, made the login…
-
-1
votes1
answer94
viewsQueue is created but never executed
I’m trying to create queues to fire push notifications and emails from an API with Lumen. I got the Warninguser class that makes the shots like this: <?php namespace App\Utils; use…
-
-1
votes1
answer420
viewsHow can I search between dates with nodejs and mongodb?
I would like to know how I can search between dates. Example: Bring all data between 06/12/2018 to 06/11/2019. Bring all data for a given year or month. How can I make these filters in my controller…
-
-1
votes1
answer104
viewsHow to insert a Dictionary as an array in the Mongo using c#
I’m mounting a monitoring system, I have a process class that gets a string NomeDoProcesso, and a Dictionary<string,Float>Variavel, in which the user enters the variable name in a textBox, and…
-
-1
votes1
answer684
viewsQuery with conditions using Mongodb Irrigation + nodejs
I have a code that returns me arrays with the parameters I need to feed my HTML page, however, I need to include some conditions in this search so that it only takes the values after a certain date.…
-
-1
votes1
answer223
viewsHow to create a search box with Nodejs and Mongodb?
I am trying to create a search with mongodb using "like" according to this site this site https://bognarjunior.wordpress.com/2015/05/18/consultas-avancadas-com-mongodb/ var results = await…
-
-1
votes1
answer143
viewsGraphql: I cannot stop the Node execution and return the Error (Business Error)
I’m trying to create some queries and mutations, on Node with Graphql. I’ve tried how to solve the problem and I can’t find a solution. I wonder if someone could help me? In the project I put the…
-
-1
votes1
answer60
viewsHow to read data from a postgresql SQL?
Hello, Good afternoon I am relatively new programming, I have been working on a project that involves the mapping of some equipment, I did my part without problems but now I need to insert data from…
-
-1
votes1
answer54
viewsFind at least one result within a mongoDB array
I would like to return the user posts if they have at least one of the tags similar to the post For example: User tags ["react","c#","node"] Post tags ["c#","sqlserver","asp.net"] How the user has…
-
-1
votes1
answer408
viewsHow to take an array within another array using python
I am trying to pick up an array of coordinates within another array in JSON document format, but am having difficulties. This is the JSON document I’m using { "bairro": "Vila Mariana", "type":…
-
-1
votes1
answer128
viewsHow to add a computed field with expression-based value in Mongodb?
I’m trying to perform a query on Mongodb where I have the list of users, with a date column indicating the last time the user went online. In this query, based on the date and time the user went…
-
-1
votes1
answer343
viewsPaging with Nodejs and Mongodb
Hello fellow programmers! I’ve been facing a problem for days and I’d like your help to solve it. I am creating a project in Nodejs and Mongodb. It queries the database according to what the user…
-
-1
votes1
answer1924
viewsError: Listen EADDRINUSE: address already in use ::3001
I can’t find the error in the code, const express = require('express'); const mongoose = require('mongoose'); // Iniciando o App const app = express(); // Iniciando o DB mongoose.connect(…
-
-1
votes1
answer60
viewsHow to display text coming from mongodb (Mongoose) with line breaks correctly?
Good afternoon. I’m a beginner and am implementing a blog using Nodejs + Express + Mongodb (Mongoose). I realized that when I create a new post, the same one, when viewed, does not show line breaks…
-
-1
votes3
answers51
viewsHow to exit the condition loop in this register with Mongoose/Express
I was learning how to connect my API to a database using Mongodb, so I started learning how to register users and everything was going fine until I got caught up in a problem that’s keeping me from…
-
-1
votes1
answer465
viewsSettings Jest + Mongodb
I am studying jest and stuck in a part in the course where it is made the configuration of the project to run the jest next to the mongodb. I’m using the dependency @Shelf/jest-mongodb.…
-
-1
votes1
answer26
viewsOrder products (Array)
Good morning, I have the following lines of code to return an order listing with the respective products. Products is an object within requests in the comic book. {transactions.map((order) => {…
-
-1
votes1
answer15
viewsCopy a Mongodb collection using pymongo and paste it into another collection
I want to copy a collection coll to back up a database in Mongodb. So I tried: >>> client = pymongo.MongoClient( ...…
-
-1
votes1
answer78
viewsMongoerror: Authentication failed. Mongoose
I am running an application Node and mongodb Docker on my machine, but when I try to connect to the bank using moogose returns: MongoError: Authentication failed. at MessageStream.messageHandler…
-
-1
votes1
answer30
viewsPersist entity history (objects) using Mongodb
I have the following entity (decreased from the actual entity): @Entity @SequenceGenerator(name = "produtoSequence", sequenceName = "sequenceproduto") public class Produto { @Id…
-
-1
votes1
answer40
viewsWhy does Mongodb (nodejs + Mongoose) not update object property of a document?
I have a document (Mongodb data) from user who has a field tags that stores the tags already used by the user. It is an object array in the format {text: 'tag1', count: 0}. The problem is when…
-
-1
votes0
answers11
viewsHow do I update with various c# records with Mongodb?
Personal I am doing my tcc and I am using Threads to simulate a simultaneous access of users in the database, already managed to do the implementation for mysql as in the example below, but I’m…
-
-2
votes1
answer123
viewsConvert Encoding to JSON
Boa Tarde Galera, I have a question, I have a file in JSON, which is with some unidentifiable characters, is there any method for me to set the encoding of it in UFT-8? Because I need to play this…
-
-2
votes1
answer45
viewsUpdate on Mongodb
Is there a function that allows you to send a message when some data is added to Collection? Kind of a logs For example: data = { "_id": 12345678910 } return db.insert_one(data) Terminal: Um novo…
-
-2
votes1
answer2232
viewsHow do I use EJS with javascript?
I need to pass a content coming from Mongodb’s Collection to my mandatory google maps api function. How would this code go down the right way with EJS + NODEJS + MONGODB? I need to pass an array of…
-
-2
votes1
answer113
views -
-2
votes2
answers39
viewsHow to save a dice with mongosis
Good afternoon. I would like to know how to save a data in mongodb, because I tried a method and it worked, now I’m trying the same in another function and it’s not working. Thanks for the help…
-
-2
votes0
answers20
viewsIn which bank should I save logs?
I want to save logs of my applications in a database, Mysql or Mongodb. However as it will be a large volume of logs, I will save in a different database from the application. I am in doubt of which…
-
-2
votes1
answer43
viewsProblems with Mongoosis function (nodejs)
Hello, I’m having problems with a learning mini-api that I’m doing, I’m not an advanced user, but I’ve been dealing with Nodejs for a long time, I decided to create a mini-api without looking at…
-
-2
votes2
answers1139
viewsUnhandledpromiserejectionwarning - Registration Error with Mongodb and Node.js
I’m trying to register users on Mongodb. The environment is windws 8.1 and I am also using Mongoose, express and Xios in the backend and Insomnia to test the registration. When I try to register…
-
-2
votes1
answer888
viewsError trying to post on Mongodb with Insomnia
Hello, I am trying to insert a data in the database (Mongodb)using the POST type, I am using Insomnia to perform the inserts tests but when I try I get a return of errors by the nodejs terminal, as…
-
-2
votes1
answer49
viewsHow to separate the logic of the interface in queries with mongodb and nodejs
I’m studying Mongodb and Nodejs, I’m starting . I downloaded an example code from git and started to customize. The original query code was like this: router.get('/products/:page', (req, res, next)…
-
-2
votes1
answer43
viewsHow to do multiple Where validations with Linq and Mongo in c#
I am developing an Api and in my GET method can be passed word to be searched, start date and end date. However all fields are optional, that is, I can pass only the word without date, I can pass…
-
-3
votes1
answer133
viewsHow to bring all the records of a certain son in mongodb?
Commando: db.collection.find({"people.name"}) { "_id" : ObjectId("11111111111111111111111111"), "people" : { "name" : "Jose" } } { "_id" : ObjectId("222222222222222222222222222"), "people" : {…
-
-3
votes1
answer125
viewslogin with multiple angular access
my problem is the following I am trying to put my login with various levels of access as if it is level 1 enters as super administrator if it is 2 enters as administrator and if it is 3 enters as…