there is a document schema that has an array field called "updatedFields" which contains some fields names that you will find in "oldDocument" and "newDocument"
I am trying to decrease the quantity, which I have to change on mongodb database, also I need to show it in body. I set a button called delivered which will de
I've recently came across this behaviour that I cannot explain. $geowithin return documents outside the polygon queried. To illustrate my problem, I've made a m
My JavaScript application allows users to download a file. The page shows a clickable link to the file. The file is stored in MongoDB. When I click on the link
I have 2 mongodb documents shop and customer shop documents are like below { id: 1, zipcodes:[ '12345', '11111', ] } { id:2, zipcodes:[ '45678', ]
I added a form and from this value all I set in const then post in API express js server with MongoDB how can I post method use post in 2url const handleSubmi
[Java, Spring Reactive, MongoDB] I'm currently trying to learn Reactive programming by doing and I found a challenge. I have db object CategoryDB which looks li
I want to create a PATCH method to update a single property for my API but there is something I don't understand.
I was making a web app where a card is showing the quantity of a product. There is a button also named Delivered. After clicking the button, I want to decrease
I make an app using node.js. and connect this with MongoDB. But when I start my server it gives me an error. The error is below. Example app listening on port 5
I have a Collection allRecords as {'name':'tom', 'subjects':'Physics'} {'name':'jerry', 'subjects':'Maths'} I have one json file is testData.json as {names:",t
I have a database as below. [ { "title": "Data 1", "slug": "data-1", "sub_docs": [ { "name": "Sub Doc 1"
I have this mongoose.connect statement in my server.js file: const db = mongoose.connect(config.db, { 'useNewUrlParser': true, 'useUnifiedTopology': tru
I want query sublist in mongo collections using Spring Data MongoDB. My Code is like public interface SomeRepo extends MongoRepository<SomeDoc, String> {
How to set a unique field in the mongodb rust implementation? Are you supposed to use create_index()? async fn create_id_fields(client: Client) -> Result {
so I have a schema where I want to add ObjectID to an array of id's in mongoose, I tried adding it unique, but did not work. Most likely because I need to itera
I have a feedbackQuestion schema which takes (title: string, subtitle: string, types: enum, values: enum) import { Prop, Schema, SchemaFactory } from '@nestjs/m
I have the below react component which is removing products from a mongodb collection based on the items in the cart. I get this error when I run the code: Comp
I am trying to show results where the sum of records is greater or equal to 4 and the status matches a string. If I leave off the status field it works fine but
So I am currently testing with returning an array element of a an aggregation in an MongoDB Atlas (4.2) trigger function: exports = function(changeEvent) {