You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why but the thing with text search by index doesn't work, I even tried to use the exact same commands as in this sheet, but on db.posts.createIndex({ title: 'text' })
i get just title_text
and then
db.friends.find({
$text: {
$search: "\"V\""
}
})
gives me an empty line. I'm using the mongosh 1.6.2.0 version
Thank you brother, amazing brief Sheet to understand the basics of MongoDB. Every work you produce is always amazing and professional in terms of its content. Thanks for everything.
Thank you @bradtraversy
I use mongosh with MongoDB 6.0.1, and some methods in the cheat sheet are deprecated. Here is what works with my version:
Get All Rows Formatted
already formatted without
pretty()
Count Rows
count()
is deprecatedUpdate Specific Field
update()
is deprecatedDelete Row
remove()
is deprecated