File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
packages/cloud_firestore/cloud_firestore Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1033,7 +1033,9 @@ class _PipelineExamplePageState extends State<PipelineExamplePage> {
10331033 ),
10341034 )
10351035 .addFields (
1036- Expression .field ('s' ).stringReplaceOneLiteral ('A' , 'Z' ).as ('s_replace_one' ),
1036+ Expression .field (
1037+ 's' ,
1038+ ).stringReplaceOneLiteral ('A' , 'Z' ).as ('s_replace_one' ),
10371039 Expression .field ('s' ).stringIndexOf ('y' ).as ('idx_y' ),
10381040 Expression .field ('s' ).stringRepeat (2 ).as ('s_twice' ),
10391041 )
@@ -1195,9 +1197,7 @@ class _PipelineExamplePageState extends State<PipelineExamplePage> {
11951197 .pipeline ()
11961198 .collection (_collectionId)
11971199 .limit (25 )
1198- .aggregate (
1199- Expression .field ('title' ).arrayAgg ().as ('all_titles' ),
1200- )
1200+ .aggregate (Expression .field ('title' ).arrayAgg ().as ('all_titles' ))
12011201 .execute (),
12021202 );
12031203
@@ -1207,9 +1207,7 @@ class _PipelineExamplePageState extends State<PipelineExamplePage> {
12071207 .pipeline ()
12081208 .collection (_collectionId)
12091209 .limit (25 )
1210- .aggregate (
1211- Expression .field ('category' ).arrayAggDistinct ().as ('cats' ),
1212- )
1210+ .aggregate (Expression .field ('category' ).arrayAggDistinct ().as ('cats' ))
12131211 .execute (),
12141212 );
12151213
Original file line number Diff line number Diff line change @@ -1019,7 +1019,9 @@ void main() {
10191019
10201020 test ('arrayAggDistinct returns ArrayAggDistinct' , () {
10211021 expect (
1022- Field ('t' ).arrayAggDistinct ().toMap ()['name' ], 'array_agg_distinct' );
1022+ Field ('t' ).arrayAggDistinct ().toMap ()['name' ],
1023+ 'array_agg_distinct' ,
1024+ );
10231025 });
10241026 });
10251027}
You can’t perform that action at this time.
0 commit comments