Seven NoSQL Databases in a Week
上QQ阅读APP看书,第一时间看更新

Applying filters on fields

To apply equal conditions, we use the following filter expression:

<field>:<value>

For example, to select the user profile with John as the user's first name, we have to apply the query as:

This gives us all the documents where we have the firstName as John:

This query will return all the documents where the first name is John. This operation is equivalent to the following SQL operation:

SELECT * FROM user_profiles WHERE firstName='John';