I have MongoDB installed on my machine, a database, a collection in the database, and a document in the collection. I have a mongodb instance running from running the mongosh
command in my terminal. After running mongosh
I get 'Connecting to:
' a URL. When I place that URL in Postman(Thunder-Client) and send a GET
request the response is "It looks like you are trying to access MongoDB over HTTP on the native driver port." along with a Status: 200 OK. I want the response to return the document that exists in that database's collection that I'm connected to.
I've tried running mongod --httpinterface
after some researching but that was to no avail. I want to do this without using Atlas.
Here's a snapshot of what I'm looking at in Postman(Thunder-Client).
It shows the URL that mongosh
returned and the connection to the database along with the document I'm trying to retrieve with the call in the left hand column.