175,487 questions
0
votes
0
answers
46
views
How to deserialize polymorphic objects in MongoDB?
I am developing a project using Kotlin and the Quarkus framework (version 3.20 LTS), that connects to a MongoDB database, which has already been populated previously with some documents using the ...
0
votes
0
answers
20
views
How to connect from host machine to a MongoDB Docker container with replica set enabled?
I'm running MongoDB inside Docker with a replica set enabled, and I want to connect to it from my host machine using MongoDB Compass.
Here’s my docker-compose.yml snippet:
services:
mongo:
...
1
vote
0
answers
30
views
How to compile MongoDB 8.0.14 using Bazel on CentOS 7?
Starting with version 8.0.13, MongoDB officially switched to Bazel as the build tool and no longer supports CentOS 7.
I have MongoDB 8.0.12 running on CentOS 7 and want to upgrade to MongoDB 8.0.14, ...
1
vote
1
answer
38
views
Mongodb v6.0.16 boost error when building from source with scons: run_it<FutureExecutorContinuationSharedState>' has no member named 'that'
I'm trying to build an older version of Mongod on Arch Linux.
It's required by software called Deadline that I intend to use; Deadline's documentation says the following: "For maximum ...
-7
votes
0
answers
31
views
Can I grant read-only access to MongoDB database without creating a user or enabling authentication? [closed]
My Questions:
Is it possible to share read-only access to my MongoDB database WITHOUT creating a user?
Is it possible to grant read-only permissions WITHOUT authentication being enabled on the server?
...
-3
votes
0
answers
35
views
Express query parser option defaults to 'simple'. How to make query parse safe?
Since Express 5.x, the query parser option defaults to 'simple'.
This seems to be due to some security issues, see https://github.com/expressjs/express/issues/3361. This caused previous queries to not ...
0
votes
0
answers
61
views
MongoDB Query - Not Terminating / keeps it opened
I am fighting for some days now with a "simple" query to gather information from a mongo DB:
var obj = {};
obj.file = db.collection(dbcollectionname);
const domain = '';
const rname = '...
1
vote
0
answers
23
views
MongoListener (Java) not reading from MongoDB collection on local Docker
I have a MongoDB Docker container, running locally. I have set this up using the following file, docker-compose.yml
services:
mongodb:
container_name: mongodb-local
image: mongo:latest
...
2
votes
2
answers
66
views
MongoDB .NET - Updating embedded document in list with filters based on Parent and Child
Each Team document contains a list of Player documents. Each Player contains a list of strings named PlayerColors.
The need is to update the PlayerColors of a specific Player within the specific team. ...
1
vote
0
answers
36
views
Mongodb not available for my AWS Lambda function
I have tried to import mongodb into my lambda function and I keep getting an error message when I attempt to test it. All the recommended resolutions I have seen assume I am working in an environment ...
1
vote
2
answers
52
views
Mongodb/atlas search with punctuation signals
I am a new developer working with MongoDb Atlas, I am currently working on text searches over a collection with news texts. In this phase I am building the pipelines for those searches, so working ...
-1
votes
0
answers
34
views
Error: `key_id` or `oauthToken` is mandatory [closed]
I am making a pateron clone
It is showing this error and in .env.local i have saved as NEXT_PUBLIC_KEY_ID and KEY_SECRET any solution for this problem .
While in terminal it is showing :-
⨯ Error: ...
0
votes
0
answers
65
views
Doctrine referenceone gives only superclass [closed]
I'm refactoring old symfony 3 and doctrine 1.3 project;
I have 2 classes in same table: Journal and Conference mapped by their same parent Periodic.
/**
* @ODM\Document(collection="periodics&...
-1
votes
1
answer
46
views
Application fails on non-primary MongoDB cluster [closed]
Mission: I am attempting to add Mongo Cluster support to our ASP.NET application.
Environment/Setup: ASP.NET application running locally with a local Mongo 7.X database. Setup is replicated on two ...
2
votes
0
answers
45
views
SocketException after upgrading to C# driver v3.2.0
After upgrading to C# driver v3.2.0 from v3.1.0, we’ve started to receive the following exceptions as UnobservedTaskExceptions in Sentry. SocketException is part of an AggregateException that is ...