python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Prevent mongoDB to save duplicate email
Prevent mongoDB to save duplicate email
UserSchema.path('email').validate(async(email)=>{
const emailcount = await mongoose.models.User.countDocuments({email})
return !emailcount
}, 'Email ...

anishkarthick s
Votes: 0
Answers: 2
Get multiple RequestParam of one variable
I'm trying to build a multifunctional search method using MongoTemplate, Query and Criteria.
Here is my RequestMapping for variable search:
public Page<Users>getUsers(
@RequestParam(...
M G
Votes: 0
Answers: 2
JavaScript List Comparison and CRUD
Background
I'm trying to create a ordering system. The first array consist of 6 items (5 indexes) and the second array is empty. When the user clicks on an html item, it adds the item name from array1...

user17952292
Votes: 0
Answers: 2
Firebase Realtime Database CRUD issue
Firebase will not update when insert button is pressed. Im working on CRUD using Firebase and can't seem to get past this step. I also get an error message that says Failed to load resource: the serve...

Chaz Carothers
Votes: 0
Answers: 1