JIYIK CN >

Current Location:Home > Learning > DATABASE >

All

Difference between ObjectId and $Oid in MongoDB

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

MongoDB stores all data records in separate BSON documents. An identifier is provided to uniquely identify each document. The identifier helps users uniquely locate the document when searching for other documents. With the help of identifie...

Full

Generate ObjectId in MongoDB using Java

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

In any database, we need to organize the data in a way that we can easily find that data when necessary. To do this, it is very important to create a unique identity. In MongoDB, there is a built-in unique identification system using a fiel...

Full

MongoDB item nested fields

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

Today, we will learn how to project nested fields when querying data in MongoDB using the $project and $unset aggregation stages, forEach() loops, and methods. mapReduce() MongoDB item nested fields In MongoDB, we can find() retrieve all do...

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

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

Using pipelines in MongoDB query operations

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

This article teaches you how to use pipelines in MongoDB's lookup Aggregation Pipeline operator. Before proceeding, you must have enough knowledge about the aggregation pipeline and the Aggregation Pipeline operator to understand the use of...

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

Returning Date-Based Queries in MongoDB

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

In this MongoDB article, the problems with returning queries based on dates are pointed out. In addition, it explains in detail how to query using date ranges in MongoDB. Using date range queries in MongoDB This section will show you how to...

Full

Install MongoDB using Homebrew

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

MongoDB is a well-known unstructured database management system that can handle large amounts of data. It is a document-oriented database system and belongs to the NoSQL family (non-SQL). Data and records are stored as documents that look a...

Full

Shutting down with code:100 error in MongoDB

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

This MongoDB tutorial will teach you to fix the error on different operating systems shutting down with code:100 . It will also talk about the root cause of why this issue occurs. shutting down with code:100 Errors in MongoDB As we all know...

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

List all collections in MongoDB Shell

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

When using MongoDB , there are several ways to list the collections in the database. This article will discuss four different ways to get a list of collections in a MongoDB database. These methods are as follows: show collections List all c...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial