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
df5e784908
commit
15c1be98ac
1 changed files with 2 additions and 2 deletions
4
MONGO.md
4
MONGO.md
|
|
@ -8,7 +8,7 @@
|
||||||
## Import
|
## Import
|
||||||
|
|
||||||
Use the `mongoimport` command/tool to import the `factbook.json` documents.
|
Use the `mongoimport` command/tool to import the `factbook.json` documents.
|
||||||
For example to import the country profile of Austria (that is, `europe/au.json`) use:
|
For example, to import the country profile of Austria (that is, `europe/au.json`) use:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mongoimport --db world --collection factbook --file europe/au.json
|
$ mongoimport --db world --collection factbook --file europe/au.json
|
||||||
|
|
@ -104,7 +104,7 @@ db.factbook.find( { "Economy.Imports - partners.text": /Austria/ }, { "Governmen
|
||||||
|
|
||||||
```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 } )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue