mirror of
https://github.com/factbook/factbook.json.git
synced 2026-07-01 19:49:37 +02:00
Update MONGO.md
This commit is contained in:
parent
0fce7967f4
commit
d4efaa7ff1
1 changed files with 7 additions and 8 deletions
15
MONGO.md
15
MONGO.md
|
|
@ -9,13 +9,13 @@
|
||||||
German
|
German
|
||||||
|
|
||||||
```js
|
```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
|
```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 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
### Find all countries with a land border with _X_?
|
### Find all countries with a land border with _X_?
|
||||||
|
|
@ -23,14 +23,14 @@ db.factbook.find( { "People and Society.Languages.text": /English/}, { "Governme
|
||||||
Austria
|
Austria
|
||||||
|
|
||||||
```js
|
```js
|
||||||
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Austria/},
|
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Austria/ },
|
||||||
{ "Government.Country name": 1 } )
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
Germany
|
Germany
|
||||||
|
|
||||||
```js
|
```js
|
||||||
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/},
|
db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/ },
|
||||||
{ "Government.Country name": 1 } )
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -40,13 +40,13 @@ db.factbook.find( { "Geography.Land boundaries.border countries.text": /Germany/
|
||||||
Austria
|
Austria
|
||||||
|
|
||||||
```js
|
```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
|
```js
|
||||||
db.factbook.find( { "Government.Suffrage.text": /16/},
|
db.factbook.find( { "Government.Suffrage.text": /16/ },
|
||||||
{ "Government.Country name": 1, "Government.Suffrage": 1 })
|
{ "Government.Country name": 1, "Government.Suffrage": 1 })
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -56,9 +56,8 @@ db.factbook.find( { "Government.Suffrage.text": /16/},
|
||||||
NATO
|
NATO
|
||||||
|
|
||||||
```js
|
```js
|
||||||
db.factbook.find( { "Government.International organization participation.text": /NATO/},
|
db.factbook.find( { "Government.International organization participation.text": /NATO/ },
|
||||||
{ "Government.Country name": 1 } )
|
{ "Government.Country name": 1 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
And so on.
|
And so on.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue