// getAllPosts(ctx, true) // better for a larger dataset
// getSinglePost(ctx, bson.M{"title": "Hello!"}) // note that this is a filter.
// Because it is a filter, the parameters have to be exact.
// Update a single record
// Note that there is an UpdateMany() function as referenced here: https://www.mongodb.com/blog/post/quick-start-golang--mongodb--how-to-update-documents.
// This may be useful when updating records for several students in a class, for example.
// Note that updating a single record will replace its contents with whatever is specified, while UpdateMany() will
// append the docuemnt or replace a record.
updateSingelRecord(ctx,bson.M{"title":"Inserted from Go"},bson.M{
"title":"Inserted from Go",
"body":"This post was appended using the ReplaceOne function.",