From the course: NoSQL Essential Training
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Query a NoSQL database - NoSQL Tutorial
From the course: NoSQL Essential Training
Query a NoSQL database
- [Instructor] Okay, Let's learn how to query in MongoDB. So we're going to use this explorer, online interface we have. And we want to query some different property types, let's say. How did I figure out we wanted to search for property types? Well, I looked at all the fields down here and saw that there was a field called Property Type. I'm assuming there's apartment, and house and others, but I can verify my assumptions simply by looking through the documents here to see different ones. Or, maybe I can query it. Huh. Let's check it out. So to filter, we go up to the filter box. We start with an open curly brace and we always end with a closing curly brace. What goes in between includes, our fields in the field values we're looking for. So let's go ahead and type in property type. And I'm going to throw in a colon. And, notice that under property type here, it has apartment in quotes. Developers might be familiar…