Skip to content
sneppets

sneppets

  • Privacy

How to list all collections from mongo shell ?

March 17, 2020March 17, 2020 Editorial StaffLeave a Comment on How to list all collections from mongo shell ?

This tutorial guides you the ways to list all collections from mongo shell. The mongo shell provides helper methods like db.getCollectionInfos() and db.getCollectionNames().

MongoDB mongo shell, mongodb

How to sort numeric strings as numbers in mongodb

March 17, 2020March 17, 2020 Editorial StaffLeave a Comment on How to sort numeric strings as numbers in mongodb

This tutorial guides you how to compare and sort numeric strings as numbers in mongodb using Collation feature of Mongo.

MongoDB mongodb, sort, String

How to drop a mongodb database from mongo shell and command line?

March 16, 2020 Editorial StaffLeave a Comment on How to drop a mongodb database from mongo shell and command line?

This tutorial guides you how to drop a mongodb database from both mongo shell and command line.

MongoDB command line, mongodb

How to fetch last n records from a collection in mongodb

March 13, 2020March 16, 2020 Editorial StaffLeave a Comment on How to fetch last n records from a collection in mongodb

This tutorial guides you how to fetch last n records from a collection in MongoDB.

MongoDB mongodb, records
spring xml configuration

Instantiate Spring Beans using an Instance Factory Method – Example

March 11, 2020 Editorial StaffLeave a Comment on Instantiate Spring Beans using an Instance Factory Method – Example

This tutorial shows complete example on how to instantiate beans in spring framework using an Instance Factory Method.

Java, Spring beans, instance factory method, spring

Posts navigation

Older posts
Newer posts
Copyright © 2018 Sneppets. All Rights Reserved