added array filter option

This commit is contained in:
2025-05-03 18:13:31 +05:30
parent 5800069e6b
commit dbc82f53a3
9 changed files with 202 additions and 174 deletions

View File

@@ -1,12 +1,12 @@
import { AuthenticatedUser } from '../auth';
import { getFilterObject, getSortObject, PageQueryParams } from '../pagination';
import { generateId } from '../utils/id';
import { AuthenticatedUser } from "../auth";
import { getFilterObject, getSortObject, PageQueryParams } from "../pagination";
import { generateId } from "../utils/id";
import {
CreateViewInput,
UpdateViewInput,
viewFields,
viewModel,
} from './view.schema';
} from "./view.schema";
export async function createView(
input: CreateViewInput,
@@ -39,7 +39,7 @@ export async function listViews(
$and: [
{ tenantId: user.tenantId },
{ createdBy: user.userId },
{ ...filterObj },
...filterObj,
],
});
}