Can someone explain this to me? All the documentation I'm reading says you just issue a use [database] command and it creates a db in mongo.
But take a look at this:
22:13 $ mongo
MongoDB shell version v3.6.0
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.0
Server has startup warnings:
2017-12-19T08:36:34.901-0600 I CONTROL [initandlisten]
2017-12-19T08:36:34.901-0600 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-12-19T08:36:34.901-0600 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-12-19T08:36:34.901-0600 I CONTROL [initandlisten]
> use spiTest
switched to db spiTest
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
> db
spiTest
>
Also when I run a test against the database using mongodb-core it's throwing an error saying "Database spiTest doesn't exist"
How do I create it?