The sh._lastMigration() method returns a document with details about the last migration performed on the database or collection. The document contains the following output:
The id of the migration task.
The name of the server.
The IP address and port number of the server.
The specific type of migration.
A document containing details about the migrated chunk. The document includes min and max sub-documents with the bounds of the migrated chunk.