Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid linter warning about unresolved operator #220

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/clojure/monger/operators.clj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
;; QUERY OPERATORS
;;

(declare $gt $gte $lt $lte $all $in $nin $eq $ne $elemMatch $regex $options)

;; $gt is "greater than" comparator
;; $gte is "greater than or equals" comparator
;; $gt is "less than" comparator
Expand Down Expand Up @@ -103,6 +105,9 @@
(defoperator $options)

;; comment on a query predicate

(declare $comment $explain $hint $maxTimeMS $orderBy $query $returnKey $showDiskLoc $natural)

(defoperator $comment)
(defoperator $explain)
(defoperator $hint)
Expand All @@ -118,6 +123,8 @@
;; EVALUATION (QUERY)
;;

(declare $expr $jsonSchema $where $and $or $nor)

(defoperator $expr)
(defoperator $jsonSchema)

Expand Down Expand Up @@ -160,6 +167,8 @@
;; ATOMIC MODIFIERS
;;

(declare $inc $mul $set $unset $setOnInsert $rename $push $position $each $addToSet $pop $pull $pullAll $bit $bitsAllClear $bitsAllSet $bitsAnyClear $bitsAnySet $exists $mod $size $type $not)

;; $inc increments one or many fields for the given value, otherwise sets the field to value
;;
;; EXAMPLES:
Expand Down Expand Up @@ -262,6 +271,8 @@
;; Aggregation in 4.2
;;

(declare $addFields $bucket $bucketAuto $collStats $facet $geoNear $graphLookup $indexStats $listSessions $lookup $match $merge $out $planCacheStats $project $redact $replaceRoot $replaceWith $sample $limit $skip $unwind $group $sort $sortByCount $currentOp $listLocalSessions $cmp $min $max $avg $stdDevPop $stdDevSamp $sum $let $first $last $abs $add $ceil $divide $exp $floor $ln $log $log10 $multiply $pow $round $sqrt $subtract $trunc $literal $arrayElemAt $arrayToObject $concatArrays $filter $indexOfArray $isArray $map $objectToArray $range $reduce $reverseArray $zip $mergeObjects $allElementsTrue $anyElementsTrue $setDifference $setEquals $setIntersection $setIsSubset $setUnion $strcasecmp $substr $substrBytes $substrCP $toLower $toString $toUpper $concat $indexOfBytes $indexOfCP $ltrim $regexFind $regexFindAll $regexMatch $rtrim $split $strLenBytes $subLenCP $trim $sin $cos $tan $asin $acos $atan $atan2 $asinh $acosh $atanh $radiansToDegrees $degreesToRadians $convert $toBool $toDecimal $toDouble $toInt $toLong $toObjectId $dayOfMonth $dayOfWeek $dayOfYear $hour $minute $month $second $millisecond $week $year $isoDate $dateFromParts $dateFromString $dateToParts $dateToString $isoDayOfWeek $isoWeek $isoWeekYear $toDate $ifNull $cond $switch)

(defoperator $addFields)
(defoperator $bucket)
(defoperator $bucketAuto)
Expand Down Expand Up @@ -410,6 +421,7 @@
(defoperator $switch)

;; Geospatial
(declare $geoWithin $geoIntersects $near $nearSphere $geometry $maxDistance $minDistance $center $centerSphere $box $polygon $slice)
(defoperator $geoWithin)
(defoperator $geoIntersects)
(defoperator $near)
Expand All @@ -425,6 +437,7 @@
(defoperator $slice)

;; full text search
(declare $text $meta $search $language $natural $currentDate $isolated $count)
(defoperator $text)
(defoperator $meta)
(defoperator $search)
Expand Down