Docker port issue
I am developing an application which runs on docker containers. I have two node js applications where one is running on port number 5000 and another on 8888 in the docker. I would like to send http request to the…
I am developing an application which runs on docker containers. I have two node js applications where one is running on port number 5000 and another on 8888 in the docker. I would like to send http request to the…
I am able to send notifications to android and apple devices using the "Compose notification" on firebase. I am trying to send a message using cloud functions but I am having a hard time. I can see all the data…
The Problem occurs while sending GET or any request with parameters in the URL. for example my index.js const express = require("express"); const bodyParser = require("body-parser"); const app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.get("/:name", function (req, res) { let…
Given a Mongo collection of data of the form: // 'Entities' { tags: [{ a: '1', b: '1' }, { a: '2', b: '3' }] } { tags: [{ a: '1', b: '2' }, { a: '2', b: '3' }]…
How can I get the value of coursestatus from all of the collections?
I just start to explore redis. I want to cache some data using redis. I set up redis connection in the server.ts file and export it from there. Import it in my controller function and try to use set and…
I'm looking to push this ObjectId from the Notes Schema: 635b70c1121186eefbbc5718 into the 'notesId' of this other Category Schema: { _id: new ObjectId("635b70c0121186eefbbc5714"), name: 'frenchLessons', creator: new ObjectId("635aa97815faaa052ae9cfce"), notesId: [], __v: 0 } What I did was that I found…
How to check the last record of a user in supabase. I would only need by means of the user ID to find his last record "date" in a descending way I have something like the following, but this would…
I have an application in react native where i'm developing a search feature like Instagram. It is like if user stop typing show him his query result. my current approach is messing up redux. And sometimes it returns same element…
I have the following Cycle Schema const mongoose=require('mongoose') const Schema = mongoose.Schema; const cycleSchema= new Schema({ startDate:{type:Date,required:true}, endDate:{type:Date,required:true}, users:[ { firstName:String, lastName:String, goals:[{ mainGoal:String, progress:{ type:Number, default:0 }, subTasks: [{ task:String, done:Boolean }] }] } ] },{ timestamps:true }) const…