Skip to main content
Skip to main content
You're viewing the documentation for v1, which isn't the latest Medusa version.Latest documentation

FindOptions

An object used to specify filters and options on a list of items.

Type parameters

TobjectRequired

Properties

where{ [Key in string | number | symbol]?: T[Key] extends string | number | bigint | boolean | symbol | Date ? any[any] | OperatorMap<any[any]> : T[Key] extends U ? U extends Object ? V extends object ? { [Key in string | number | symbol]?: Partial<V>[Key] extends string | number | bigint | boolean | symbol | Date ? any[any] | OperatorMap<any[any]> : Partial<V>[Key] extends U ? (U extends { [x: number]: infer V; } ? V extends object ? { [Key in keyof Partial<V>]?: (Partial<V>[Key] extends string | number | bigint | boolean | symbol | Date ? Partial<...>[Key] | OperatorMap<...> : Partial<...>[Key] extends infer U ? U extends { ...; } ? V extends object ? ... : never : never : never) | undefi...) : never } : never : never : never } & BaseFilterable<{ [Key in string | number | symbol]?: T[Key] extends string | number | bigint | boolean | symbol | Date ? any[any] | OperatorMap<any[any]> : T[Key] extends U ? U extends Object ? V extends object ? { [Key in string | number | symbol]?: Partial<V>[Key] extends string | number | bigint | boolean | symbol | Date ? any[any] | OperatorMap<any[any]> : Partial<V>[Key] extends U ? (U extends { [x: number]: infer V; } ? V extends object ? { [Key in keyof Partial<V>]?: (Partial<V>[Key] extends string | number | bigint | boolean | symbol | Date ? Partial<...>[Key] | OperatorMap<...> : Partial<...>[Key] extends infer U ? U extends { ...; } ? V extends object ? ... : never : never : never) | undefi...) : never } : never : never : never }>Required
The filters to apply on the items.
optionsOptionsQuery<T, any>
The options to apply when retrieving the items.
Was this section helpful?