For questions about Amazon's DocumentDB with MongoDB compatible databases.
Questions tagged [aws-documentdb-mongoapi]
109 questions
1
vote
2 answers
Mongodb 3.6 using multiple conditions on aggregation lookup
I have two collections in my MongoDb
metricCollectionForms
metric
A metricCollectionForms document looks something like this
{
"_id": ObjectId("5ea25f38afd94f0008d4e6f2"),
"approverId": "f08ba2aa-4597-41f0-9e6c-cebf1715ba30",
…

codeinprogress
- 3,193
- 7
- 43
- 69
1
vote
0 answers
How to connect to documentDB using karate?
We have collections in documentDb to which I connect using the compass interface, but now I have to write test cases for it in karate and can't find a away to connect to documentDB. Is there any way please help!.

avi vohra
- 21
- 2
1
vote
2 answers
AWS DocumentDB connection problem with TLS
When TLS is disabled, I can connect successfully through my lambda function using the same code as shown here - https://docs.aws.amazon.com/documentdb/latest/developerguide/connect.html#w139aac29c11c13b5b7
However, when I enable TLS and use the TLS…

CM.
- 670
- 1
- 6
- 25
1
vote
1 answer
Set hint for update to use indexes
As per documentation it is possible to provide a hint to an update.
Now I'm using the java mongo client and mongo collection to do an update.
For this update I cannot find any way to provide a hint which index to use.
I see for the update I'm…

tomhier
- 570
- 1
- 5
- 15
1
vote
2 answers
Amazon DocumentDB fails to connect with error "SSL peer certificate validation failed"
I am trying to connect to our AWS DocumentDB, but it fails with the following error:
2019-12-04T17:46:52.551-0800 W CONTROL [main] Option: ssl is deprecated. Please use tls instead.
2019-12-04T17:46:52.551-0800 W CONTROL [main] Option: sslCAFile…

Vargha Hokmran
- 61
- 1
- 7
1
vote
1 answer
Solr Mongo/DocDB Delta Import Query is not working
I am trying to import data from Document DB to solr-5.4.1.
Full import is executing properly but delta import is not working. When I execute delta import nothing happens
Here is the current delta…

ron
- 51
- 1
- 5
1
vote
1 answer
DocumentDB connection issue
I have made a DocumentDb cluster in AWS and was trying to connect with it my local server on my machine. This is my code
const mongoose = require('mongoose')
const fs = require('fs');
mongoose.Promise = global.Promise
var ca =…

Alpit Anand
- 1,213
- 3
- 21
- 37
1
vote
1 answer
MongoError: Aggregation stage not supported: '$changeStream'
We have a sharded cluster of document db, hosted on AWS and using mongo db version 3.6 and we want to implement a collection.watch() function in the node.js code to get the changestream, whenever there is a change in the collection. While I am…

Sandeep Bhalothia
- 13
- 3
1
vote
0 answers
Convert projected value when querying MongoDB
We had a solution using SQL Server where we were able to use a computed field to essentially map a field value to a friendly name when querying the database only when returning records. We've now moved to DocumentDB in AWS and I'm trying to…

jugg1es
- 1,560
- 18
- 33
1
vote
1 answer
Is Amazon DocumentDB capable of using gridFS
I am working with a client which needs grid-fs and wants to use a managed database service. I am not familiar at all with amazon's DocumentDB and whether it is compatible with gridFS. I could not find the question answered anywhere.

jman
- 685
- 5
- 15
1
vote
2 answers
Pritunl setup with Amazon Documentdb
I'm setting up pritunl and I want to use Amazon Document DB instead Mongo DB or Mongo DB Atlas. This is for a vpn idea that I had, server is running ubuntu 18.04 and followed the standard install guide from pritunl, I have it working correctly with…

adailycanof
- 71
- 6
1
vote
5 answers
Amazon DocumentDB cluster with Mongo connection from applicaiton failing
I am trying to set up an Amazon EB instance to work with DocumentDB. When I try to connect with amazon linux terminal, the connection just work fine. But when I try to connect with PHP it returns an error shown below
"No suitable servers found…

Ashikur Rahman
- 131
- 4
- 9
0
votes
0 answers
DocumentDB listchangestreams
Following the AWS documentation we are trying to list all change streams using the command
cursor = new DBCommandCursor(db,
db.runCommand(
{aggregate: 1,
pipeline: [{$listChangeStreams: 1}], cursor:{}}));
We are running this…

outstacked
- 201
- 1
- 4
- 11
0
votes
1 answer
It AWS has a native way to explore DocumentDb, without using AWS Internet Gateway to external client?
I create a AWS DocumentDb, and I want to explore it (find or even add items).
But the only way I found how to do it, is to open the VPC to the internet (using AWS Internet gateway) and use Compass or other Mongo client.
Is there is a way that AWS…

Hagay r
- 15
- 5
0
votes
0 answers
Connecting from AWS Lambda to DocumentDB Without NAT Gateway Using Direct Connection (in the Same VPC)
I wanted to share a solution that allows you to connect from an AWS Lambda function to Amazon DocumentDB without using a NAT gateway, provided that both are in the same VPC. This can be a cost-saving approach during development.
Problem:
When…

Aliaksei Smirnou
- 1
- 1