Browse Source

feat: add filter query param as an alias for where

pull/6748/head
Pranav C 1 year ago
parent
commit
8605a0e4f3
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

2
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -5064,7 +5064,7 @@ export function getListArgs(
{ ignoreAssigningWildcardSelect = false } = {}, { ignoreAssigningWildcardSelect = false } = {},
): XcFilter { ): XcFilter {
const obj: XcFilter = {}; const obj: XcFilter = {};
obj.where = args.where || args.w || ''; obj.where = args.where || args.filter || args.w || '';
obj.having = args.having || args.h || ''; obj.having = args.having || args.h || '';
obj.shuffle = args.shuffle || args.r || ''; obj.shuffle = args.shuffle || args.r || '';
obj.condition = args.condition || args.c || {}; obj.condition = args.condition || args.c || {};

Loading…
Cancel
Save