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';

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.