JIYIK CN >

Current Location:Home > Learning >

All

Search in a specified array in MongoDB

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

$in Operator searches within an array that you provide. For example, if you are given an array and want to search for one or more matching elements in a MongoDB collection, you can use $in . Use $in the operator to search for a specified ar...

Full

Update multiple documents in MongoDB

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

This article will discuss how to efficiently update multiple documents in MongoDB. updateMany() Methods in MongoDB Using the update method in MongoDB db.collection.updateMany() , you can update multiple documents in a collection. This metho...

Full

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

Install and use Elasticsearch and MongoDB on Windows and Ubuntu

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

This article is a step-by-step installation and configuration guide for Elasticsearch on Windows and Ubuntu 20.04. It also demonstrates using Elasticsearch with MongoDB on both operating systems. What is Elasticsearch Elasticsearch is a NoS...

Full

Use find operator to join multiple conditions in MongoDB

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

$lookup Today, we will see how to concatenate multiple conditions using the operator in MongoDB . In addition, we will explore some examples to demonstrate the use of $group the stage and $unionWidth the aggregation stage. $lookup Use the o...

Full

Check if a field exists in MongoDB

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

This article will tell you about all the fields in a database and how to check if they exist. In addition, you will learn how to check if an embedded field exists in a database. Fields in the database A field is a physical structure that ho...

Full

A query similar to the SQL LIKE statement in MongoDB

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

MongoDB is a powerful NoSQL database server. It uses JSON-like documents with optional schema to store data. Organizing data is always an essential task for developers as it plays the most critical role in the performance of the application...

Full

Create a MongoDB dump of the database

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

In this MongoDB article, you’ll get a walkthrough of Mongodump and Mongorestore , how to use them, and some simple examples of backing up and restoring your collections using both tools. mongodump Commands in MongoDB Mongodump is a tool t...

Full

Querying for non-null values in MongoDB

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

This MongoDB article will explain how to query for non-null values ​​in MongoDB. To query for non-null values, you can use $ne the operator and $eq the operator and then specify the desired value to query. This article shows the readers...

Full

Deleting Duplicates in MongoDB

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

If you are a database administrator, you are probably familiar with duplicate entries. Duplicate entries are a common problem in database management. In this article, we will see how to remove duplicate entries in MongoDB, and we will also...

Full

MongoDB truncate collection

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

A collection is nothing but a folder that contains all the documents. When using capped collections, there is a cap on the number of records you can add to the collection. The maximum size of a document is 16MB. Sometimes you want to build...

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

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial