talawa-api / Exports / libraries/dbLogger / InterfaceLoggableQuery
Interface: InterfaceLoggableQuery<T>
libraries/dbLogger.InterfaceLoggableQuery
Type parameters
Name |
---|
T |
Hierarchy
-
Query
<unknown
,T
>↳
InterfaceLoggableQuery
Table of contents
Properties
Methods
- $where
- [asyncIterator]
- all
- allowDiskUse
- and
- batchSize
- box
- cast
- circle
- clone
- collation
- comment
- countDocuments
- cursor
- deleteMany
- deleteOne
- distinct
- elemMatch
- equals
- error
- estimatedDocumentCount
- exec
- exists
- explain
- find
- findById
- findByIdAndDelete
- findByIdAndUpdate
- findOne
- findOneAndDelete
- findOneAndUpdate
- geometry
- get
- getFilter
- getOptions
- getPopulatedPaths
- getQuery
- getUpdate
- gt
- gte
- hint
- in
- intersects
- j
- lean
- limit
- lt
- lte
- maxDistance
- maxTimeMS
- merge
- mod
- mongooseOptions
- ne
- near
- nin
- nor
- or
- orFail
- polygon
- populate
- post
- pre
- projection
- read
- readConcern
- regex
- replaceOne
- select
- selected
- selectedExclusively
- selectedInclusively
- session
- set
- setOptions
- setQuery
- setUpdate
- size
- skip
- slice
- sort
- tailable
- toConstructor
- transform
- updateMany
- updateOne
- w
- where
- within
- wtimeout
Properties
[toStringTag]
• [toStringTag]: string
Inherited from
Query.[toStringTag]
Defined in
node_modules/mongoose/types/query.d.ts:269
_mongooseOptions
• _mongooseOptions: MongooseQueryOptions
<T
, "timestamps"
| MongooseBaseQueryOptionKeys
| "lean"
>
Inherited from
Query._mongooseOptions
Defined in
node_modules/mongoose/types/query.d.ts:209
catch
• catch: <TResult>(onrejected?
: null
| (reason
: any
) => TResult
| PromiseLike
<TResult
>) => Promise
<unknown
>
Executes the query returning a Promise
which will be
resolved with either the doc(s) or rejected with the error.
Like .then()
, but only takes a rejection handler.
Type declaration
▸ <TResult
>(onrejected?
): Promise
<unknown
>
Type parameters
Name | Type |
---|---|
TResult | never |
Parameters
Name | Type |
---|---|
onrejected? | null | (reason : any ) => TResult | PromiseLike <TResult > |
Returns
Promise
<unknown
>