builder change

This commit is contained in:
Julian Krauser 2024-12-14 15:44:17 +01:00
parent 63a0a60b12
commit 2518a1046f
2 changed files with 54 additions and 93 deletions

View file

@ -16,7 +16,7 @@ export type ConditionStructure = (
| {
structureType: "nested";
invert?: boolean;
condition: Array<ConditionStructure>;
conditions: Array<ConditionStructure>;
}
) & {
concat: WhereType;
@ -52,7 +52,7 @@ export type OrderByStructure = {
export type OrderByType = "ASC" | "DESC";
const exampleQuery: DynamicQueryStructure = {
export const exampleQuery: DynamicQueryStructure = {
select: ["firstname", "lastname"],
table: "member",
where: [
@ -66,7 +66,7 @@ const exampleQuery: DynamicQueryStructure = {
{
structureType: "nested",
concat: "AND",
condition: [
conditions: [
{
structureType: "condition",
concat: "_",