This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const smartWatch = [ | |
{ | |
id: 1, | |
name: 'Apple Watch Ultra 2 GPS+Cellular with Blue/Black Trail Loop - S/M (49mm Display, Titanium Case)', | |
brand: 'Apple', | |
price: 84, | |
image: | |
'https://media-ik.croma.com/prod/https://media.croma.com/image/upload/v1694711060/Croma%20Assets/Communication/Wearable%20Devices/Images/301048_0_x1euf9.png', | |
images: [ | |
'https://media-ik.croma.com/prod/https://media.croma.com/image/upload/v1694711060/Croma%20Assets/Communication/Wearable%20Devices/Images/301048_0_x1euf9.png', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//it will conect to your mongo db url | |
function makeNewConnection(uri) { | |
const db = mongoose.createConnection(uri, { | |
useNewUrlParser: true, | |
useUnifiedTopology: true, | |
}); | |
return db; | |
} | |
const userConnection = makeNewConnection("mongodb://127.0.0.1:27017/users"); |