diff --git a/packages/sdk/src/convertQuerytoClause.ts b/packages/sdk/src/convertQuerytoClause.ts index 60ba5aaa..649901c5 100644 --- a/packages/sdk/src/convertQuerytoClause.ts +++ b/packages/sdk/src/convertQuerytoClause.ts @@ -295,6 +295,8 @@ function convertToPrimitive(value: any): torii.MemberValue { }; } else if (typeof value === "string") { return { String: value }; + } else if (Array.isArray(value)) { + return { List: value.map((item) => convertToPrimitive(item)) }; } // Add more type conversions as needed diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index 93531b4e..eac1970a 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -101,6 +101,8 @@ export type WhereCondition = $gte?: TModel[P]; $lt?: TModel[P]; $lte?: TModel[P]; + $in?: TModel[P][]; + $nin?: TModel[P][]; }; };