Questions tagged [aws-documentdb-mongoapi]

For questions about Amazon's DocumentDB with MongoDB compatible databases.

References:

109 questions
3
votes
0 answers

Client network socket disconnected before secure TLS connection was established(while trying to connect DocumentDB using Node.JS)

I am working on a requirement where I am using AWS DocumentDB as database and using NodeJS as programming language in backend application and deploying the setup on AWS ECS Fargate. When I configure backend APIs in front end app and executes the…
3
votes
1 answer

$text search is not supported aws mongodb

I want to do a text search based on weightage. So used below mongo query Query: db.stores.find( { $text: { $search: ""coffee shop"" } } ) This query works for MongoDB but, aws documentDB is not supporting $text search. Is there any alternate way to…
Umang Soni
  • 521
  • 5
  • 9
3
votes
0 answers

Aggregation stage not supported: '$bucket'

I am using mongodb and querying a db using bucket stage with aggregation. mongodb version : db.serverBuildInfo() { "version" : "3.6.0", "versionArray" : [ 3.0, 6.0, 0.0, 0.0 ], "bits" : 64.0, …
DEV
  • 2,106
  • 3
  • 25
  • 40
3
votes
2 answers

AWS DocumentDB errors after migration from mongoDB

My application is shifted from MongoDB to DocumentDB. I get these errors after migration though I resolved the connectivity issue to AWS DocumentDB. MongoError: namespace name generated from index name is too long at…
Harish
  • 565
  • 1
  • 12
  • 34
3
votes
2 answers

DocumentDB long running query times out even with maxTimeMS:0

I am trying to query documentDB with 500M documents (1Tb). var t1 = Date.now(); 'Total X Records:'; db.runCommand({aggregate: "house", pipeline: [{$project: {'_id': 1, 'foo.x': 1}}, {$match: {'foo.x.y': {$in: ['2018-12-15']}}}, {$unwind:…
oshaiken
  • 2,593
  • 1
  • 15
  • 25
3
votes
2 answers

multiple fields of compound index cannot be arrays

I am getting this error while migrating data from mongodb to documentdb. Indexes were created on documentdb side without problems. 2019-04-26T17:40:20.118+0000 error: multiple fields of compound index cannot be…
oshaiken
  • 2,593
  • 1
  • 15
  • 25
3
votes
3 answers

How to connect to Amazon DocumentDB from Node.js

How do I connect to Amazon's new DocumentBD database from node.js (In this case, using an out-of-the-box Elastic Beanstalk setup.) This is my code, copied from the docs (with some values altered for privacy). It just times out and the eventual value…
3
votes
3 answers

problems connecting to AWS DocumentDB

I created a Cluster and an Instance of DocumentDB in amazon. When I try to connect to my Local SSH (MacOS) it displays the following message: When I try for the MongoDB Compass…
3
votes
2 answers

A timeout connection to AWS documentDb with ssl enabling

I'm creating new cluster of documentDb in AWS and trying to connect with my net.core application by MongoDriver to it. Cluster with Ssl enabled property. According to this question and answers I have tried couple ways for reaching my goal. Import…
Yaroslav
  • 504
  • 6
  • 13
3
votes
3 answers

Does AWS DocumentDB support MongoDB 2dshpere index?

i'm trying run existing application with a new AWS DocumentDB service. From mongo shell i tried to run db.geojson.createIndex( { geoData : "2dsphere" , sessionId:1 } ) and received { "ok" : 0, "errmsg" : "Index type not supported : 2dsphere",…
Alex
  • 81
  • 1
  • 5
2
votes
1 answer

Is there a way to insert a record with a value from another record

I have case of collection that holds "item" data, with required node "owner" and optional node "status", e.g. { _id: 123, item: {some: "data 123" }, owner: {id: 456} } { _id: 124, item: {some: "data 124" }, owner: {id: 789}, status: { ok: 1} } and…
ggogggo
  • 23
  • 3
2
votes
0 answers

AWS DocumentDB with C# MongoDB driver, unsupported efficient pagination

I am developing some queries and indexing against a MongoDB 4.0 using the C# MongoDB.Driver 2.12.4 All is great with MongoDB. Unfortunately, I must use AWS DocumentDB as the production database, which claims to be compatible with MongoDB, but I've…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
2
votes
1 answer

Is Orion compatible with AWS DocumentDB

I am trying to connect Orion with AWS DocumentDB but it's not getting connected. However I tried two other FIWARE components IoTAgent and Sth-Comet with DocumentDB and both are working fine. Same hostname and credential are working for IoTAgent and…
2
votes
2 answers

Deletion Operation in AWS DocumentDB

I have a question about deleting data in AWS DocumentDB. I am using PuTTY to connect to EC2 instance and I use mongo shell command to connect with my Document DB. I checked AWS DocumentDB documentation but I couldn't find how to delete singular data…
2
votes
0 answers

How to rewrite mapReduce using aggregate or anyother alternative

Hi I am facing difficulty in rewriting mapReduce as it is not supported in aws documentdb any workaround will be appreciated var historyMap = function () { var values = { updateType: this.updateType.name + '(v.' +…