@ewb/mongoose-query 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,9 +5,11 @@ export interface IMongooseQueryOptions {
|
|
|
5
5
|
limit?: number | string;
|
|
6
6
|
page?: number | string;
|
|
7
7
|
text?: string;
|
|
8
|
+
$text?: string;
|
|
8
9
|
sort?: string;
|
|
9
|
-
populate?: string;
|
|
10
10
|
select?: string;
|
|
11
|
+
populate?: string;
|
|
12
|
+
$populate?: string;
|
|
11
13
|
[key: string]: string | number | undefined;
|
|
12
14
|
}
|
|
13
15
|
export declare function mongooseQueryOptions(query: IMongooseQueryOptions): {
|
package/lib/utils/Query.utils.js
CHANGED
|
@@ -121,7 +121,7 @@ export function mongooseQueryWithOperation(query, key, str) {
|
|
|
121
121
|
}
|
|
122
122
|
export function greaterLessThanValue(key, query, str) {
|
|
123
123
|
const [operation, field] = splitKey(key);
|
|
124
|
-
let value
|
|
124
|
+
let value;
|
|
125
125
|
if (query[field]) {
|
|
126
126
|
value = {
|
|
127
127
|
...query[field],
|
package/package.json
CHANGED