Don't add numbering to primary key
This commit is contained in:
parent
38994eb977
commit
b2e8522b7b
|
@ -28,7 +28,11 @@
|
||||||
function addNumbering(filters) {
|
function addNumbering(filters) {
|
||||||
let count = 1
|
let count = 1
|
||||||
for (let value of filters) {
|
for (let value of filters) {
|
||||||
if (value.field && value.field?.match(QUERY_START_REGEX) == null) {
|
if (
|
||||||
|
value.field &&
|
||||||
|
value.field?.match(QUERY_START_REGEX) == null &&
|
||||||
|
value.field !== "_id"
|
||||||
|
) {
|
||||||
value.field = `${count++}:${value.field}`
|
value.field = `${count++}:${value.field}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue