I have a Spring Boot app configured with default settings to use MongoDB. In order for my Spring Boot app to work, I have to manually launch MongoDB from terminal so I thought I could do commands from the shell to see what I was doing in the app. The app starts and performs all of the CRUD functions specified. When I launch mongo shell and do: use test
Test is the only db that list using
show collections
I then do:
db.test.find()
No records are listed, even though I get a dozen records back if I do a GET using Postman; therefore, the records are in mongoDB. I don't know how to run queries on the instance of mongoDB that Spring Boot is using (if it is different than the one I manually launched).