@mikro-orm/core 7.0.0-dev.129 → 7.0.0-dev.130
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.
- package/enums.d.ts +1 -0
- package/enums.js +1 -0
- package/package.json +1 -1
- package/typings.d.ts +8 -0
- package/utils/Utils.js +1 -1
package/enums.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare enum QueryOperator {
|
|
|
42
42
|
$none = "none",// collection operators, sql only
|
|
43
43
|
$some = "some",// collection operators, sql only
|
|
44
44
|
$every = "every",// collection operators, sql only
|
|
45
|
+
$size = "size",// collection operators, sql only
|
|
45
46
|
$hasKey = "?",// postgres only, json
|
|
46
47
|
$hasKeys = "?&",// postgres only, json
|
|
47
48
|
$hasSomeKeys = "?|"
|
package/enums.js
CHANGED
|
@@ -44,6 +44,7 @@ export var QueryOperator;
|
|
|
44
44
|
QueryOperator["$none"] = "none";
|
|
45
45
|
QueryOperator["$some"] = "some";
|
|
46
46
|
QueryOperator["$every"] = "every";
|
|
47
|
+
QueryOperator["$size"] = "size";
|
|
47
48
|
QueryOperator["$hasKey"] = "?";
|
|
48
49
|
QueryOperator["$hasKeys"] = "?&";
|
|
49
50
|
QueryOperator["$hasSomeKeys"] = "?|";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.130",
|
|
5
5
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
package/typings.d.ts
CHANGED
|
@@ -127,6 +127,14 @@ export type OperatorMap<T> = {
|
|
|
127
127
|
$none?: ExpandQuery<T>;
|
|
128
128
|
$some?: ExpandQuery<T>;
|
|
129
129
|
$every?: ExpandQuery<T>;
|
|
130
|
+
$size?: number | {
|
|
131
|
+
$eq?: number;
|
|
132
|
+
$ne?: number;
|
|
133
|
+
$gt?: number;
|
|
134
|
+
$gte?: number;
|
|
135
|
+
$lt?: number;
|
|
136
|
+
$lte?: number;
|
|
137
|
+
};
|
|
130
138
|
$gt?: ExpandScalar<T>;
|
|
131
139
|
$gte?: ExpandScalar<T>;
|
|
132
140
|
$lt?: ExpandScalar<T>;
|
package/utils/Utils.js
CHANGED
|
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
|
|
|
123
123
|
}
|
|
124
124
|
export class Utils {
|
|
125
125
|
static PK_SEPARATOR = '~~~';
|
|
126
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.130';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|