Documents and Collections A simple search condition could consist of the  Name  field and a value we know is in a document. The following example returns a single document: The following example searches for all countries that have a GNP higher than $500 billion. The countryinfo  collection measures GNP in units of million. The Population field in the following query is embedded within the demographics object. To access the embedded field, use a period between demographics and Population to identify the relationship. Document and field names are case-sensitive. Arithmetic operators in the following expression are used to query for countries with a GNP per capita higher than $30000. Search conditions can include arithmetic operators and most MySQL functions. Seven documents in the  countryinfo  collection have a population value of zero. Therefore warning messages appear at the end of the output. You can separate a value from the search condition by using the  bind()  method. For example, instead of specifying a hard-coded country name as the condition, substitute a named placeholder consisting of a colon followed by a name that begins with a letter, such as  country . Then use the  bind( placeholder , value )  method as follows: 3851 mysql-js>  db.countryinfo.find("GNP*1000000/demographics.Population > 30000") ...[ output removed ] 9 documents in set, 7 warnings (0.00 sec) Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 Warning (Code 1365): Division by 0 mysql-js>  db.countryinfo.find("GNP > 500000") ...[ output removed ] 10 documents in set (0.00 sec) mysql-js>  db.countryinfo.find("GNP > 500000 and demographics.Population < 100000000") ...[ output removed ] 6 documents in set (0.00 sec) mysql-js>  db.countryinfo.find("Name = ’Australia’") [ { "GNP": 351182, "Code:": "AUS", "Name": "Australia", "IndepYear": 1901, "geography": { "Continent": "Oceania", "Region": "Australia and New Zealand", "SurfaceArea": 7741220 }, "government": { "GovernmentForm": "Constitutional Monarchy, Federation", "HeadOfState": "Elisabeth II" } "demographics": { "LifeExpectancy": 79.80000305175781, "Population": 18886000 }, } ] Note