python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Mongoose add an object to nested array of objects in the database using push method
in this function i find the post by post id then find a specific comment within this post by comment id, then i check if the nested array of objects likes contains user id, if no then i push user id t...
aasem shoshari
Votes: 0
Answers: 1
How do I stream a chunked file using Node.js Readable?
I have a 400Mb file split into chunks that are ~1Mb each.
Each chunk is a MongoDB document:
{
name: 'stuff.zip',
index: 15,
buffer: Binary('......'),
totalChunks: 400
}
I am fetching each chu...
Kawd
Votes: 0
Answers: 1
How to save an array of strings using mongoose schema
I have this schema to represent a user:
const UserSchema = mongoose.Schema({
username: {
type: String,
required: false
},
social: [{
facebook: {
type: S...
user3174311
Votes: 0
Answers: 2
MongoDB not receiving data into Model/Schema
I have a problem with my MongoDB. It's not receiving data that I am trying to send into it. Everything seems to work fine, except the database is empty.
I'm making an app that scrapes data from yahoo....
Mateusz Szumilo
Votes: 0
Answers: 1