JIYIK CN >

Current Location:Home > Learning > DATABASE > MongoDB >

All

Convert Timestamp to Date in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article demonstrates how to convert a timestamp to a date in MongoDB. It also explains how to count entries for a specific date. Convert Timestamp to Date in MongoDB Converting from timestamp to date depends on the type we are saving t...

Full

Fuzzy search in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

Today, we will discuss fuzzy search and how to do it with MongoDB. We will start by using $regex the operator and $text the query. In addition, we will learn to Fuse.js perform fuzzy search on documents using a JavaScript library called . W...

Full

Get the last N records in MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

This article will explore the number of ways to get the last N records in MongoDB, where N is a positive number greater than zero. We will see how to retrieve the number of documents with and without sorting. Get the last N records in Mongo...

Full

Merge two collections into one using MongoDB

Publish Date:2025/04/29 Author:JIYIK Category:MongoDB

Today, we will merge two collections into one using $lookup the Aggregate stage, the pipeline AND $unwind operator, the Filter stage, and MongoDB Compass. $project Merge two collections into one using MongoDB We have different ways to combi...

Full

Clear or delete a collection in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

This article will discuss the issue of deleting collections in MongoDB. The following are different ways to delete collections in MongoDB. MongoDB delete collection There are two ways to delete a collection in MongoDB. After running the dro...

Full

Comparing fields in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

Sometimes, we need to find a document by comparing two fields. For example, we may need to consider both the sequence number and the ID number when selecting documents in a MongoDB collection; we will see this later in this tutorial. In thi...

Full

Importing CSV files in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

This article is dedicated to helping you use the mongoimport command, which allows users to import CSV files into a database in MongoDB. This article explains what a CSV file is. An example CSV file is provided at the beginning to help you...

Full

Exporting a collection to CSV format in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

This article discusses in detail about exporting a collection to CSV format in MongoDB. We have two methods to export a collection to CSV format: Studio 3T and MongoExport. Export a collection to CSV format in MongoDB using the Studio 3T Ex...

Full

Autoincrement in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

Most SQL query languages ​​include a keyword for making a field auto-increment, but in MongoDB it is a bit more complicated. In MongoDB, there is no keyword for auto-increment. This article will show us how to insert data in MongoDB col...

Full

Composite Indexes in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

Sometimes we need to create an index that contains multiple fields. For example, if your document contains a field called Sex, it may contain two other fields, such as Male and Female. These fields may have values ​​like Yes or No. In t...

Full

Sparse Indexes in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

In MongoDB, it is not mandatory for all documents to contain the same fields. Now, if you want to get all the documents in a MongoDB collection that contain only a specific field, then you may need to specify a common field as an index. Thi...

Full

Using ORM with MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

MongoDB introduces a NoSQL solution for data storage and management, consisting of documents represented in JSON style. Like other database systems, MongoDB can also use ORM. In this article, we will explain the concepts of ORM and general...

Full

Building the MongoDB REST API

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

MongoDB is a flexible and scalable document-oriented database system that is widely used for large-volume data storage. It uses documents and collections instead of the traditional rational database approach of using tables and rows. MongoD...

Full

Convert string to date in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

MongoDB is an excellent platform that is growing in popularity. Among the various features it offers, MongoDB also allows you to convert data from one type to another. This may seem like a complex function, but it is very simple to execute....

Full

Find objects between two dates in MongoDB

Publish Date:2025/04/28 Author:JIYIK Category:MongoDB

In this article, the problem of finding objects between two dates was briefly discussed. In addition, the operators $gte, $lte, $gt, and $lt used for this purpose were briefly explained in detail. Querying date ranges in MongoDB This sectio...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial