mirror of
https://github.com/factbook/factbook.json.git
synced 2026-06-25 19:38:06 +02:00
Update MONGO.md
This commit is contained in:
parent
f65826d0d7
commit
4b2899eaae
1 changed files with 15 additions and 11 deletions
26
MONGO.md
26
MONGO.md
|
|
@ -8,13 +8,13 @@
|
||||||
|
|
||||||
German
|
German
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "People and Society.Languages.text": /German/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "People and Society.Languages.text": /German/}, { "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
English
|
English
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "People and Society.Languages.text": /English/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "People and Society.Languages.text": /English/}, { "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -22,14 +22,16 @@ db.factbook.find( { "People and Society.Languages.text": /English/}, { "Governme
|
||||||
|
|
||||||
Austria
|
Austria
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Austria/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Austria/},
|
||||||
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
Germany
|
Germany
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/},
|
||||||
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -37,14 +39,15 @@ db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/
|
||||||
|
|
||||||
Austria
|
Austria
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "Economy.Imports - partners.text": /Austria/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "Economy.Imports - partners.text": /Austria/}, { "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
### Find all countries with voting age 16 years
|
### Find all countries with voting age 16 years
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "Government.Suffrage.text": /16/}, { "Government.Country name": 1, "Government.Suffrage": 1 })
|
db.factbook.find( { "Government.Suffrage.text": /16/},
|
||||||
|
{ "Government.Country name": 1, "Government.Suffrage": 1 })
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -52,8 +55,9 @@ db.factbook.find( { "Government.Suffrage.text": /16/}, { "Government.Country nam
|
||||||
|
|
||||||
NATO
|
NATO
|
||||||
|
|
||||||
```
|
```js
|
||||||
db.factbook.find( { "Government.International organization participation.text": /NATO/}, { "Government.Country name": 1 } )
|
db.factbook.find( { "Government.International organization participation.text": /NATO/},
|
||||||
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
And so on.
|
And so on.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue