This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Load airports from Openflights.org dataset | |
| CREATE CONSTRAINT ON (c:Country) ASSERT c.name IS UNIQUE; | |
| CREATE CONSTRAINT ON (c:City) ASSERT c.name IS UNIQUE; | |
| CREATE CONSTRAINT ON (a:Airport) ASSERT a.id IS UNIQUE; | |
| LOAD CSV FROM "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat" AS row | |
| WITH toInt(row[0]) AS id, | |
| row[1] AS name, | |
| row[2] AS city, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '[Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=syslog.target network.target | |
| [Service] | |
| User=mongodb | |
| Group=mongodb | |
| ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
| [Install] |