To check if we have successfully connected to the database, we can use the events open , error from the mongoose.connection object.
確定! 回上一頁