I am trying to deploy a mongo db deployment together with service, as follows: apiVersion: apps/v1 kind: Deployment metadata: name: mongo-deployment labels:
mongoexport -h db.mysite.com -u myUser -p myPass -c myCollection But the response I get is: ERROR: too many positional options What's that about?
I'd like to configure an upsert. If _id already exists on my object, it recognizes that and updates the match. If _id doesn't exist, it should insert the new do
const uri=`mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASS}@cluster0.crceb.mongodb.net/myFirstDatabase?retryWrites=true&w=majority`; When I run
So - I have a Heroku + Node + Express + MongoDB app in development, and I've been playing around all day trying to figure out how to get the mongo query I want.
I have created file storage in nodejs application to store images in uploads folder. which works fine but now I want to display those images I have read some ot
What I'm trying to acheive I'm trying to fetch users for a certain database. What I did so far I was able to find function to list the databases or create us
I have managed to set up a search feature in my mongodb app. See the code below. This works very well however it only returns exact results. How would I change
I am trying to configure ssl/tls with mongod on ubuntu 20.04 LTS. mongod version is 5.0.5. For generating ssl/tls, I am using ssl/ssl certificates from let's en
I'm currently using: from typing import Type from pymongo.collection import Collection def collection_type_test(example_collection: Type[Collection]) -> lis
I want to be able to query documents having a specific field's value not empty, if the field is present. Normally I'd do something like: client_comment: { '$exi
Show my code conf.set( "mongo.input.uri" , "mongodb://127.0.0.1/stackoverflow.mrtest" ); conf.set( "mongo.output.uri" , "mongodb://127.0.0.1/stackoverflow.mrte
Need some help here. Tried almost everything that I found at the internet, but didn't works. So, this is my code: const id = req.params.id.trim(); Blog
I have two collections with same structure and want to merge them in aggregation result and query & sort over them after merging. E.g.; First collection:
I have created a mongoose model that has an email field. I want it to be unique if a value is provided by a user but I want it to be empty is a user has not pro
I'm fairly new on mongodb, and while I'm trying to make ordered mongodb query. But spring data mongodb's sort method is deprecated. So I used org.springframewor
I'm trying to build a small cluster using mongodb sharding. I tried with everything in localhost and it works perfect. But when I try on my local network where
I took a dump of a db having only 1 collection and two indices. The collection had roughly 6.5 million documents. When I tried to restore it, much to my surpris
I'm getting this error when I run my app.js file Error: querySrv ETIMEOUT _mongodb._tcp.cluster0.ye1nx.mongodb.net I am trying to console the database list but
I am unable to get the result I wanted when I try to get Date equal to. FilterDefinition<dynamic> searchFilter = FilterDefinition<dynamic>.Empty; st