How can i use User collection with Mongoose?
Im using user id from users collection another posts collection and created by key is saving user collections Id
While fetching posts i want to populate user also using the id
But its not getting
I created mongoose schema and passing collection name as user
Because by default mongoose created Post Schema with name posts in mongodb. Thats why explicitly mentioned name
If i do direct query for User collections using mongoose also not getting any record
Is it because better-auth created collections?
How to resolve this?
0 Replies