mongodb tag

31 questions


1 answers
138 views
0
Wildcard Search in mongoDB

I would like to obtain a document with a key of 0001 (first and third) in the following documents.However, the nested depth of the value of 0001 is not unique.db.collection.find({0001:wildcard})I'm wo...

2 years ago

1 answers
115 views
0
Cannot connect to mongos

We are building our environment with a replica set configuration with MongoDB.The DB server, config server, is working properly.Unable to connect to mongos server.mThe mongos server is connected to th...

2 years ago

1 answers
74 views
0
I want to get the total number of replies in MongoDB

There is a table hoge with columns id, replyReply contains the id of the reply destination, and if there is no reply destination, it is null.Suppose you have the following data:{ id: 1, reply—Null},{ ...

2 years ago

1 answers
107 views
0
Understanding AWS DynamoDB Data Structure

I'm thinking of creating an app with image posting and image ranking functions on ios.So I am using AWS Dynamo DB, but I was wondering what to do with the structure of the database, so I asked you a q...

2 years ago

1 answers
100 views
0
Generating Combinations in MongoDB

An array of arrays of all combinations of elements = 5 (e.g., 1, 2, ..., 20) is formed by extracting arbitrary three elements from an array 1 and arbitrary two elements (no duplication) from an array ...

2 years ago

2 answers
97 views
0
I want to use MongoDB to search for documents by location information.

I use MongoDB through Mongoose in Node.js.Think about the data that has the location information on the screen.{ location: { x —Number, y —Number }}You have defined a schema called .Therefore, I would...

2 years ago

1 answers
137 views
0
The mongo shell that I started while I was remoteing Powershell ends quickly.

I'm a beginner at Mongodb.If you start the mongo shell on the powershell of the window server (2016 Standard) where Mongodb is installed, you can use it without any problems as follows.PSC:\Users\Admi...

2 years ago

1 answers
141 views
0
Problems Running MongoDB\Collection::mapReduce()

Recently, I have been worrying a lot about MongoDB's environment.Environment:·MongoDB Server 3.2.0 (*Created database using MongoDB API in Microsoft Azure's CosmosDB)·mongo_php_driver 1.4.3·mongo_php_...

2 years ago

1 answers
133 views
0
Is it safe to use a string received remotely in MongoDB search as a regular expression?

The regular expression says there is a risk of Denial of Service Attacks (ReDOS) that increase processing time exponentially.http://blog.ohgaki.net/regex-dos-redosIn fact, running the following code i...


2 answers
105 views
0
Node.js catches only MongoDB unique constraint errors

I am using TypeScript.I would like to determine the following unique constraint error. What should I do?Looking at the type definition of the MongoError object, it seems that there are only the messag...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.