fix(orchestration): Ids wrongly processed when using operators map (#9781)
* fix(orchestration): Ids processing when using operators map * fix(orchestration): Ids processing when using operators map * address feedback * address feedback
This commit is contained in:
committed by
GitHub
parent
b9c787ac2b
commit
f295596df2
23
packages/core/utils/src/common/filter-operator-map.ts
Normal file
23
packages/core/utils/src/common/filter-operator-map.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { OperatorMap } from "@medusajs/types"
|
||||
|
||||
export const FilterOperatorMap: { [K in keyof OperatorMap<string>]: string } = {
|
||||
$and: "$and",
|
||||
$or: "$or",
|
||||
$eq: "$eq",
|
||||
$ne: "$ne",
|
||||
$in: "$in",
|
||||
$nin: "$nin",
|
||||
$not: "$not",
|
||||
$gt: "$gt",
|
||||
$gte: "$gte",
|
||||
$lt: "$lt",
|
||||
$lte: "$lte",
|
||||
$like: "$like",
|
||||
$re: "$re",
|
||||
$ilike: "$ilike",
|
||||
$fulltext: "$fulltext",
|
||||
$overlap: "$overlap",
|
||||
$contains: "$contains",
|
||||
$contained: "$contained",
|
||||
$exists: "$exists",
|
||||
}
|
||||
@@ -74,3 +74,4 @@ export * from "./trim-zeros"
|
||||
export * from "./upper-case-first"
|
||||
export * from "./validate-handle"
|
||||
export * from "./wrap-handler"
|
||||
export * from "./filter-operator-map"
|
||||
|
||||
Reference in New Issue
Block a user