Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ
Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ
DDeno
Created by Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ on 7/5/2024 in #help
Mongoose Type Error
Do you need the fix?
6 replies
DDeno
Created by Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ on 7/5/2024 in #help
Mongoose Type Error
I've fixes it
6 replies
DDeno
Created by Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ on 7/7/2024 in #help
How to remove `.ts` extension form file name
@Deno AI Helper
3 replies
DDeno
Created by Mr. Wayne ๐Ÿ‡ต๐Ÿ‡ธ on 7/5/2024 in #help
Mongoose Type Error
Fixed Using This:
async databaseConnection() {
const options: Partial<ConnectOptions> = {
autoIndex: false,
retryWrites: true,
dbName: "YOUR_DB_NAME",
connectTimeoutMS: 12000,
}

await mongoose
.connect(Deno.env.get("MONGODB_URL") || "", options as ConnectOptions)
.then(() => console.log("Database Connected... ๐Ÿ”Œโšกโœ…"))
}
async databaseConnection() {
const options: Partial<ConnectOptions> = {
autoIndex: false,
retryWrites: true,
dbName: "YOUR_DB_NAME",
connectTimeoutMS: 12000,
}

await mongoose
.connect(Deno.env.get("MONGODB_URL") || "", options as ConnectOptions)
.then(() => console.log("Database Connected... ๐Ÿ”Œโšกโœ…"))
}
6 replies