티스토리 뷰
반응형
Query Selectors
Comparison
For comparison of different BSON type values, see the specified BSON comparison order.
Name | Description |
---|---|
$eq | Matches values that are equal to a specified value. |
$gt | Matches values that are greater than a specified value. |
$gte | Matches values that are greater than or equal to a specified value. |
$lt | Matches values that are less than a specified value. |
$lte | Matches values that are less than or equal to a specified value. |
$ne | Matches all values that are not equal to a specified value. |
$in | Matches any of the values specified in an array. |
$nin | Matches none of the values specified in an array. |
Logical
Name | Description |
---|---|
$or | Joins query clauses with a logical OR returns all documents that match the conditions of either clause. |
$and | Joins query clauses with a logical AND returns all documents that match the conditions of both clauses. |
$not | Inverts the effect of a query expression and returns documents that do not match the query expression. |
$nor | Joins query clauses with a logical NOR returns all documents that fail to match both clauses. |
Element
Name | Description |
---|---|
$exists | Matches documents that have the specified field. |
$type | Selects documents if a field is of the specified type. |
Evaluation
Name | Description |
---|---|
$mod | Performs a modulo operation on the value of a field and selects documents with a specified result. |
$regex | Selects documents where values match a specified regular expression. |
$text | Performs text search. |
$where | Matches documents that satisfy a JavaScript expression. |
Geospatial
Name | Description |
---|---|
$geoWithin | Selects geometries within a bounding GeoJSON geometry. The 2dsphere and 2dindexes support $geoWithin . |
$geoIntersects | Selects geometries that intersect with a GeoJSON geometry. The 2dsphere index supports $geoIntersects . |
$near | Returns geospatial objects in proximity to a point. Requires a geospatial index. The 2dsphere and 2d indexes support $near . |
$nearSphere | Returns geospatial objects in proximity to a point on a sphere. Requires a geospatial index. The 2dsphere and 2d indexes support $nearSphere . |
Array
Name | Description |
---|---|
$all | Matches arrays that contain all elements specified in the query. |
$elemMatch | Selects documents if element in the array field matches all the specified $elemMatch conditions. |
$size | Selects documents if the array field is a specified size. |
Bitwise
Name | Description |
---|---|
$bitsAllSet | Matches numeric or binary values in which a set of bit positions all have a value of 1 . |
$bitsAnySet | Matches numeric or binary values in which any bit from a set of bit positions has a value of 1 . |
$bitsAllClear | Matches numeric or binary values in which a set of bit positions all have a value of 0 . |
$bitsAnyClear | Matches numeric or binary values in which any bit from a set of bit positions has a value of 0 . |
Comments
Name | Description |
---|---|
$comment | Adds a comment to a query predicate. |
Projection Operators
Name | Description |
---|---|
$ | Projects the first element in an array that matches the query condition. |
$elemMatch | Projects the first element in an array that matches the specified $elemMatch condition. |
$meta | Projects the document’s score assigned during $text operation. |
$slice | Limits the number of elements projected from an array. Supports skip and limit slices. |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- node.js
- yugabyteDB
- weka
- 홈 오피스
- 남설 팔찌
- 빈센트 반 고흐
- 유가바이트디비
- 코라나 19
- 고체 향수
- 배당급
- 화분벌레
- 별이 빚나는 밤
- 매직 트랙패드2
- 별잉 빛나는 밤
- Sybase IQ
- 파나소닉 비데 DL-EH10KWS
- JMW 헤어드라이기기
- 로니카 BCS
- 루미큐브 종류
- Pixel Pals
- 증권정보포털
- 톡토기
- GKRS
- Life Chair
- 르세라핌
- 카카오 에드
- 오미크론
- 솔리드 쿨론
- 브리다 정수기
- VARIDESK
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
글 보관함