Don't add numbering to primary key
This commit is contained in:
parent
b2ee8884d5
commit
57f695ac3c
|
@ -28,7 +28,11 @@
|
|||
function addNumbering(filters) {
|
||||
let count = 1
|
||||
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}`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue