// inserts one document into "collection1" 
db.collection1.insertOne(
    {
        test: "Hello 123"
    }
);

// selects database "myapp" to run commands on.
use myapp;

// switch to different collection. just pretend it already exists.
db.pets.insertOne(
    {
        pet_name: "Chuck"
    }
)

// find all documents in "pets" collection
db.pets.find();


// insert multiple pets at a time:
db.pets.insertMany(
    [
        {
            pet_name: "Charlie",
        },
        {
            pet_name: "Pixie",
        }
    ]
)

// insert single document with multiple properties:
db.pets.insertOne(
    {
        pet_name: "josie",
        age: 4,
        isHungry: true
    }
);


// insert multiple documents each having multiple properties:
db.pets.insertMany(
    [
        {
            pet_name: "petA",
            age: 4,
            isHungry: false
        },
        {
            pet_name: "petB",
            age: 18,
            isHungry: true,
            weight: 136
        }
    ]
)


/// Insert MANY documents to play around with in future videos.
db.pets.insertMany(
    [
        {
            _id: "1",
            pet_name: "juice",
            breed: "maltese",
            age: 11,
            sex: "female",
            personality: "friendly",
            type: "dog"
        },
        {
            _id: "2",
            pet_name: "squack",
            breed: "parakeet",
            age: 4,
            sex: "male",
            personality: "loud",
            type: "bird"
        },
        {
            _id: "3",
            pet_name: "bobby",
            breed: "pigeon",
            age: 2,
            sex: "female",
            personality: "energetic",
            type: "bird"
        },
        {
            _id: "4",
            pet_name: "whalina",
            breed: "blue",
            age: 23,
            sex: "female",
            weight: 187000,
            type: "whale"
        },
        {
            _id: "5",
            pet_name: "Hershey",
            breed: "boxer",
            age: 3,
            sex: "male",
            personality: "playful",
            type: "dog"
        },
        {
            _id: "6",
            pet_name: "squeek",
            breed: "siamese",
            age: 15,
            sex: "male",
            weight: 2,
            type: "cat"
        },
        {
            _id: "7",
            pet_name: "kipper",
            breed: "greyhound",
            age: 5,
            sex: "male",
            neutered: true,
            type: "dog"
        },
        {
            _id: "8",
            pet_name: "noki",
            breed: "short-haired persian",
            age: 3,
            sex: "female",
            type: "cat"
        },
        {
            _id: "9",
            pet_name: "pooki",
            age: 3,
            sex: "female",
        },
        {
            _id: "10",
            pet_name: "snooki",
            age: 5,
            sex: "male",
        },
        {
            _id: "11",
            pet_name: "wooki",
            age: 4,
            sex: "male",
        }
    ]
)