The problem has been found because using mongoose.createConnection to connect to the database can only operate the database in the current js. Here I just looked up the data in the users table. In the routing, I also involved data query operations in other tables. There is nothing written there. mongoose.createConnection connection operation library operation.
Where do the req and res in the error code come from
The problem has been found because using mongoose.createConnection to connect to the database can only operate the database in the current js. Here I just looked up the data in the users table. In the routing, I also involved data query operations in other tables. There is nothing written there. mongoose.createConnection connection operation library operation.