Update type definitions #2
This commit is contained in:
+1
-1
@@ -916,7 +916,7 @@ export type ServerQueryParamsJoin<
|
||||
tableName: Table;
|
||||
match?:
|
||||
| ServerQueryParamsJoinMatchObject<Field>
|
||||
| ServerQueryParamsJoinMatchObject<Field>[];
|
||||
| (ServerQueryParamsJoinMatchObject<Field> | undefined)[];
|
||||
selectFields?: (keyof Field | SelectFieldObject<Field>)[];
|
||||
omitFields?: (
|
||||
| keyof Field
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isUndefined } from "lodash";
|
||||
import _, { isUndefined } from "lodash";
|
||||
import type { ServerQueryParam, TableSelectFieldsObject } from "../types";
|
||||
import sqlGenGrabConcatStr from "./sql-generator-grab-concat-str";
|
||||
import sqlGenGenJoinStr from "./sql-generator-gen-join-str";
|
||||
@@ -195,6 +195,7 @@ export default function sqlGenGenQueryStr<
|
||||
return (
|
||||
"(" +
|
||||
join.match
|
||||
.filter((mtch) => !_.isUndefined(mtch))
|
||||
.map((mtch) => {
|
||||
const { str, values } =
|
||||
sqlGenGenJoinStr({
|
||||
|
||||
Reference in New Issue
Block a user