Thanks for the reply @Stennie.
As you mentioned, I am trying to retrieve documents within my database. However, upon calling the find function on my DB collection, I am still unable to see the relevant document output.
Below is my code snippet:
client = Mongo::Client.new('mongodb+srv://user:password@cluster.mongodb.net/test')
collection = client[:listingsAndReviews]
puts collection.find({name: "Ribeira Charming Duplex"})
The output which I was expecting to receive was this:
_id
"10006546"
listing_url
"https://www.airbnb.com/rooms/10006546"
name
"Ribeira Charming Duplex"
summary
"Fantastic duplex apartment with three bedrooms, located in the histori…"
space
"Privileged views of the Douro River and Ribeira square, our apartment …"
description
"Fantastic duplex apartment with three bedrooms, located in the histori…"
However i keep getting nil values.
The Database has been made public and hence you would be able to access it as well through mongoDB compass through the URI in my code snippet.
Thank you,
Pin Hoong