From the course: NoSQL Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: NoSQL query

Solution: NoSQL query - NoSQL Tutorial

From the course: NoSQL Essential Training

Start my 1-month free trial

Solution: NoSQL query

(upbeat music) - [Instructor] All right, let's see how we did. Again we're looking for property types of houses with two bedrooms, one bath and a minimum night stay of two. First thing you are going to do is look through the documents and browse the fields and see what field names represent what we're looking for. We will start with property type. So go ahead in your filter box start with an open curly brace, that's how we're going to start all our queries. And then you are going to type in the property type field, property underscored type. Colon separates our field from our values. And in this case our value needs to be in quotes. So we will follow suit, property type house. Next up, we're going to move on to bedrooms now to separate our field value pairs from each other, we use commas. Boom. Now let's go ahead and look for bedrooms, it's represented by the word bedrooms. And in this case, this is a…

Contents