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)
store month/day/year in mongoose schema
I have a mongoose schema with a created key. Currently I am using Date.now which is storing the date value as. 2022-01-12T22:23:49.621Z
Is it possible to store the data as a 01/22/2022 format in the d...
KingJoeffrey
Votes: 0
Answers: 0
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
postgresql subscription not working for schemas other than public
I'm trying to create a logical replication with two local postgresql servers (node1: port 5434, node2: port 5435).
I could successfully create publication and subscription on node1 and node2 for a tab...
Tony
Votes: 0
Answers: 1
FastAvro Schema Issues
I've almost finished the avro section but I am having one big challenge ahead of me which is the name and namespace. I've tried this and no matter what I've done, I've experienced errors, even when re...
E_Sarousi
Votes: 0
Answers: 1