Category "mongodb"

Spring boot MongoTemplate group without _id

I want a single object from the collection that counts and calculates average. The collection looks like this: [{ "_id" : ObjectId("617822b1d128026ff4c76a76

Having problem in connecting to remote MongoDB Server

I tried to connect a remote MongoDB Server running on Ubuntu using MongoDB Compass on Windows. But I have problems connecting always as the IP of the Windows ma

How to 'join' or populate an array

Here is my very basic product schema: const productSchema = new Schema({ productName: { type: String, required: true, }, productDescription: {

Unexpected token ')' in D:\Mridul\Codes\js\API BASED\Anime Quote\views\info.ejs while compiling ejs

So I want to display MongoDB data in HTML so I used the EJS template but this is the error it is showing . I can't seem to figure out where the problem is, IS i

mongodb & php: how can I store and callback a custom js function to parse data?

Before to submit the doubt that I have, let me start from preamble that I'm definitively a newbie on MongoDB world ;( but I'm going to learn quickly! The goal t

Unable to name a Mongo database in Docker compose

Can anyone tell me where I am going wrong. All I am trying to do is name a Mongo database using docker compose. I have a docker compose file that looks like thi

realm swift - filter objects with a property that starts with a string included in a list

I have a list of strings filterList = ['x0', 'x1', 'x2'] My object is as follows: class Item: Object { @Persisted var name: String? } I want to get all obj

mongoose save internal documents creating a document that contains a document

Im learning mongoose and i have a question how to save several documents: // Product.js const categorySchema = mongoose.Schema( { name: String }, { collecti

Mongoose - "Enriched" Query with Data from other Collection

I'm quite new to using Mongoose and therefore not too familiar with operations that go beyond finding data in a single collection. Was googling approaches to ac

Enable istio mTLS STRICT with MongoDB

I have a technical difficulty, I am trying to enable 'STRICT' mutual TLS. I have a stateless service (name: "my-service" / ServiceAccount / Service / Deployment

Can you add apps made from (js, nodejs, express and mongodb) in a wordpress website?

I already have a wordpress website. I studied web development using js, node.js, express and mongodb and build some projects. I would like to add it to my websi

Express graphql mutation giving empty result after creating user

server: const { ApolloServer, gql } = require("apollo-server-express"); const express = require("express"); const mongoose = require("mongoose"); const { userRe

Query with arbitrary number of filter conditions that come from querying the same collection

const score_schema = mongoose.Schema( { tester_id: { type: mongoose.Schema.Types.ObjectId, ref: "user", required: true, }, test_

Unhandled error event and cannot read properties of null nodemon app crashed

[nodemon] starting `node app.js` Server started on port 3000 node:events:505 throw er; // Unhandled 'error' event ^ TypeError: Cannot read properti

How to update and delete a review of a product using nodejs

I am creating a e-commerce app and now I want to update and delete a review of a product using nodejs and database is mongoDB (using mongoose). This is my User

Extracting embedded data from mongo object ( sub fields) in Talend

I'm working on Talend open studio for Big Data and connected to a MongoDB Database , however i can't extract complex subfields objects from my collections, some

Overwrite value and create key while update query in mongodb

I have a mongodb collection that looks like this: { "_id" : ObjectId("60471bd482c0da3c0e70d26f"), "owner" : "John", "propAvailable" : { "

Azure CosmosDB MongoDB Api GeoSpatial queries not working

I have CosmosDB MongoDB-API instance. Mongo server version = 4.0.0 Inserted documents look like: { "_id": "111", "fileName": "some.txt", "type": "

Parallel test execution and growing active connections to mongodb

I have an application with thousands of tests through MockMvc. The tests are running in band, so 1 at a time and whole process takes hours. I decided to try par

GridFS Large File Download Crashes the Node.js Server. MongoServerError: Sort exceeded memory limit of bytes

So I'm running a Node.js server with mongoose and I've been trying to download a large file using the GridFS node package but I've been getting the following er