Here the -1 indicates that we want to return the documents based on the descending order of Employee id. Using sort() method, you can sort the documents in ascending or descending order based on a particular field of document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |