Back-End/MongoDB

[MongoDB] MQL 기초 1 - Query Filter와 Operator

유자맛바나나 2024. 5. 31. 01:25

 

MongoDB CRUD Operation Manual

MongoDB CRUD Operations

 

MongoDB CRUD Operations - MongoDB Manual v7.0

CRUD operations create, read, update, and delete documents.You can connect with driver methods and perform CRUD operations for deployments hosted in the following environments:Create or insert operations add new documents to a collection. If the collection

www.mongodb.com

 

MongoDB CRUD의 핵심은 Query Filter와 Operator

 

 

1. 가장 기본적인 형태의 MQL

 

 

2. Query Filter와 Operator를 적용한 MQL

 

Operator 공식 문서

Operators

 

Operators - MongoDB Manual v7.0

To learn which operators are unsupported in MongoDB Atlas, see Unsupported Commands in Atlas.Query and Projection OperatorsQuery operators provide ways to locate data within the database and projection operators modify how data is presented.Update Operator

www.mongodb.com

  • Operator의 종류가 매우 많다. 자주 사용하는건 일부 정해져 있고, 필요한 건 문서를 확인하면서 사용한다.