File tree 7 files changed +8272
-10979
lines changed 7 files changed +8272
-10979
lines changed Original file line number Diff line number Diff line change 1
- 2.4.9
1
+ 2.4.11
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lowcoder-frontend" ,
3
- "version" : " 2.4.9 " ,
3
+ "version" : " 2.4.11 " ,
4
4
"type" : " module" ,
5
5
"private" : true ,
6
6
"workspaces" : [
Original file line number Diff line number Diff line change 12
12
13
13
14
14
<properties >
15
- <revision >2.4.9 </revision >
15
+ <revision >2.4.11 </revision >
16
16
<java .version>17</java .version>
17
17
<maven .compiler.source>${java.version} </maven .compiler.source>
18
18
<maven .compiler.target>${java.version} </maven .compiler.target>
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lowcoder-node-server" ,
3
- "version" : " 2.4.9 " ,
3
+ "version" : " 2.4.11 " ,
4
4
"private" : true ,
5
5
"engines" : {
6
6
"node" : " ^14.18.0 || >=16.0.0"
Original file line number Diff line number Diff line change @@ -113,24 +113,6 @@ const queryConfig = {
113
113
label : "Start at" ,
114
114
type : "textInput" ,
115
115
tooltip : "Start the query at a specific document." ,
116
- } ,
117
- {
118
- key : "endAt" ,
119
- label : "End at" ,
120
- type : "textInput" ,
121
- tooltip : "End the query at a specific document." ,
122
- } ,
123
- {
124
- key : "startAfter" ,
125
- label : "Start after" ,
126
- type : "textInput" ,
127
- tooltip : "Start the query after a specific document." ,
128
- } ,
129
- {
130
- key : "endBefore" ,
131
- label : "End before" ,
132
- type : "textInput" ,
133
- tooltip : "End the query before a specific document." ,
134
116
}
135
117
] ,
136
118
} ,
Original file line number Diff line number Diff line change @@ -87,11 +87,22 @@ export async function runFirebasePlugin(
87
87
const data = await withFirestoreCollection ( async ( ref ) => {
88
88
let query ;
89
89
if ( actionData . orderBy ) {
90
+ console . log ( "orderBy" , actionData . orderBy ) ;
90
91
query = ref . orderBy (
91
92
actionData . orderBy ,
92
93
( actionData . orderDirection || "asc" ) as OrderByDirection
93
94
) ;
94
95
}
96
+ // Apply startAt if specified (for pagination)
97
+ if ( actionData . startAt ) {
98
+ if ( Array . isArray ( actionData . startAt ) ) {
99
+ // If startAt is an array, pass it as is
100
+ query = ( query || ref ) . startAt ( ...actionData . startAt ) ;
101
+ } else {
102
+ // If startAt is a single value, use it directly
103
+ query = ( query || ref ) . startAt ( actionData . startAt ) ;
104
+ }
105
+ }
95
106
if ( actionData . limit > 0 ) {
96
107
query = ( query || ref ) . limit ( actionData . limit ) ;
97
108
}
You can’t perform that action at this time.
0 commit comments