fix: add order to pagination types (#9471)
This commit is contained in:
committed by
GitHub
parent
f7472a6fa6
commit
d06ea6985d
@@ -4,6 +4,7 @@ import {
|
||||
RemoteQueryGraph,
|
||||
RemoteQueryObjectConfig,
|
||||
} from "@medusajs/types"
|
||||
import { IndexOrderBy } from "@medusajs/types/dist/index/query-config/query-input-config-order-by"
|
||||
import { QueryContext, QueryFilter, isObject } from "@medusajs/utils"
|
||||
import { parseAndAssignFilters } from "./parse-filters"
|
||||
|
||||
@@ -36,6 +37,7 @@ export function toRemoteQuery<const TEntity extends string>(
|
||||
pagination?: {
|
||||
skip?: number
|
||||
take?: number
|
||||
order?: IndexOrderBy<TEntity>
|
||||
}
|
||||
context?: Record<string, any>
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user