builder change
This commit is contained in:
parent
63a0a60b12
commit
2518a1046f
2 changed files with 54 additions and 93 deletions
|
@ -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: "_",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue