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) {
I need help to upload large zip file (compressed) and save it to my MongoDB: <form action="./uploid" method="post" id="uploadForm" enctype="multipart
Here is the scenario : We have 2 tables (issues, anomalies) in BigQuery, which we plan to combine into a single document in MongoDB, since the 2 collections (is
Suppose that,I have a product collection named productCollection.How can i get all those products where the product's amount is less than a specific amount?What
I am storing user data in MongoDB and want to maintain activity logs for each user. eg: Who logged in and when? Which user perform certain and when they did Al
I tried to do basic things. I have an array that contains multiple objects. I want to add new key-value pair in every array object. I tried this by following co
File "/Users/akaash/opt/miniconda3/lib/python3.8/site-packages/prisma/generato r/models.py", line 861, in check_supported_scalar_list_type Cannot use b_boxes as
I have done some reading and found similar threads but none seem to work for my use case. I am trying to extend mongo's primitive library specifically primitive
I have a MongoDB instance hosted on AWS DocumentDB. There is only one node in the replica set, and this is MongoDB 4.0.0 Community edition. Twice now I've upda
I have collection where each document has two fields: "Field1" - string value "Field2" - object value with "Field2.Field3(object).Field4(string)". Now I'm tryin
This question is only for understanding purpose. This might be a noob question. Assume that I have a tabular or document NoSQL database which do not support tra
I have an application running on graphql that queries some data in mongodb. Within the resolver we have some filtering conditions using where : export default {