{"size": 687, "ext": "js", "max_stars_repo_path": "test.js", "max_stars_repo_name": "markallen01666/booksBlog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test.js", "max_issues_repo_name": "markallen01666/booksBlog", "max_issues_repo_issues_event_min_datetime": "2021-05-10T16:17:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T23:28:25.000Z", "max_forks_repo_path": "test.js", "max_forks_repo_name": "markallen01666/booksBlog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 42.9375, "max_line_length": 278, "alphanum_fraction": 0.7627365357}
// Testing CRUD operations on MongoDB database using Mongoose

const mongoose = require('mongoose')
const BlogPost = require('./models/BlogPost')

mongoose.connect('mongodb://localhost/my_database', {
    useNewUrlParser: true,
    useUnifiedTopology: true
})

BlogPost.create({
    title: 'The new catalogue of historic buildings in Malmesbury',
    body: 'This guide catalogues the extensive list of recognised historic buildings and structures in the ancient bourough of Malmesbury, Wiltshire. From iron age fortifications to WW2 radar factories, the town has an enviable number of buildings linked to the national story.'
}, (error, blogpost) => {
    console.log(error, blogpost)
})