python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k 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
Find objects whose nested objects match two different values for the same key
I have objects that look like this:
[
{
"url": "a",
"nested_object_keys": [
{
"vendor": "terraform",
"tag": ...
eloaf
Votes: 0
Answers: 1
MongoDB UpdateMany Child Array without filter
Mongo Playground
Simple Schema:
[
{
"key": 1,
"Array": [
{
"Prop1": 1,
"Prop2": 2
},
{
"Prop1": 2,...
2Fast4YouBR
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