For questions about Amazon's DocumentDB with MongoDB compatible databases.
Questions tagged [aws-documentdb-mongoapi]
109 questions
1
vote
1 answer
Spring Boot Mongo Repository Document DB Retryable writes are not supported
I'm currently trying to update a document using MongoRepository in Spring, where it is connecting to an AWS DocumentDB cluster. I am getting a 301 - Retryable writes are not supported error even though the URL used to connect to DocumentDB includes…

smorenoq
- 21
- 3
1
vote
1 answer
How can I refactor the following $let queries
I am planning to migrate mongodb to aws's documentdb. As per DocDB's documentation, $let queries are not supported natively. So I am looking for options about how can I refactor the following:
let params.status = ["Pending", "Scheduled",…

justinpakulo
- 43
- 8
1
vote
1 answer
$expr' operator not supported in AWS documentdb - Any alternative to $exp
We are trying to migrate Mongo 4.4 version to Document DB 3.6 - 4 version. While checking for compaitability we saw '$expr' operator not supported. Is there any alternative to this in AWS Documentdb?
Two sample statement…

Ashutosh Kumar
- 11
- 1
1
vote
0 answers
Cannot connect to document db when username and password are passed as arguments
I have a documentdb cluster, I m unable to connect to documentDB when I pass username and password args at once
mongo --host :27017 --username admin --password
I get following error
connecting to: mongodb://<…

saketh
- 803
- 1
- 10
- 24
1
vote
2 answers
Counting $lookup and $unwind documents filtered with $match without getting rid of parent document when all results match
I have a collection "Owners" and I want to return a list of "Owner" matching a filter (any filter), plus the count of "Pet" from the "Pets" collection for that owner, except I don't want the dead pets. (made up example)
I need the returned documents…

MarcB
- 549
- 6
- 14
1
vote
1 answer
Mongo Shell becomes unresponsive after connecting to AWS Document DB
I created an AWS Document DB in the same region as my EC2. When I try to connect to it using the command provided by AWS the terminal seems to get stuck.
The ec2 and Document DB are in the same region.
Document DB's security group allows 27017…

asds_asds
- 990
- 1
- 10
- 19
1
vote
1 answer
Does AWS DocumentDB support pymongo .hint at all?
I have a large but simple collection in DocumentDB (3.6) and need to quickly and efficiently retrieve all document ids matching a simple regex pattern.
On the cli I can search for these with a regex and hint and seem to get good results via…

CoderChris
- 1,161
- 2
- 12
- 20
1
vote
0 answers
Not able to delete DocumentDB Since It is in incompatible-network
I am not able to Delete or modify my Amazon DocumentDB database since it is in incompatible-network. It is in incompatible-network because I have deleted the VPC which is connected to that DocumentDB and I am not able to do anything with that…

aditya Damera
- 100
- 1
- 5
1
vote
1 answer
E11000 duplicate key error collection index: _id_ in mongo driver
I am using InsertMany method in my service to insert 1000 documents in to MongoDB(in AWS DocumentDB). It is working fine when I use one pod in AWS. But If I scale my service to 2 or more pods it throws E11000 duplicate key error collection: myDB…

CheckMyPost_045
- 103
- 2
- 3
- 14
1
vote
1 answer
MERN Stack in AWS
I am new to MERN stack and managed to build an app. I want to deploy it in AWS. But the problem I have to use document DB instead of Mongo DB. Do I need to rewrite my code to do this. Can I use the same mongoose methods? Please help. I am very new…

muneer
- 17
- 4
1
vote
1 answer
Error : "pymongo.errors.OperationFailure: Feature not supported: splitVector" While using ReadFromMongoDB in Apache Beam
I am trying to read data from mongodb(which is running in AWS Documentdb) and write to bigquery.
I have written python code for that and running it using python3 command. My pipeline string looks like below:
p |…

Joseph D
- 189
- 1
- 12
1
vote
2 answers
Sending Data From AWS IoT To Databases
I have a question for you. I am new in AWS IoT, AWS ES and MQTT. I followed this nice tutorial and finished it. I sent a JSON data to AWS IoT by using AWS Lambda function. Then, in AWS IoT I created a rule to send this data to AWS Elasticsearch. In…

firefighter
- 171
- 1
- 14
1
vote
2 answers
Unable to share encrypted DocumentDB cluster snapshot to diffrent AWS account for same region
I am trying to copy or share the DocumentDB cluster from one AWS account to other, but the existing cluster is encrypted so I am not able to do share it with other accounts, so is there any way we can make existing cluster unencrypted and then share…

Gaurav Takte
- 607
- 5
- 22
1
vote
1 answer
TLS Handshake failed when connecting to AWS DocumentDB using mongocxx C++
When trying to connect to AWS DocumentDB using mongocxx C++ driver, even after using the AWS combined pem file as a URI parameter (CA file), I get the below error of TLS handshake failed.
No suitable servers found (`serverSelectionTryOnce` set):…

Jonathan Declan Tan
- 141
- 1
- 11
1
vote
1 answer
How to connect DocumentDB and Laravel
I want to connect Laravel with DocumentDB from AWS.
But i cant find any document or tutorial about this.
is there a way to connect DocumentDB at least to Laravel server?

Rawelja
- 109
- 9