@@ -111,10 +111,14 @@ field("optional_field").ifAbsent(field('default_field'))
111111| [log10 ()](./firestore_lite_pipelines .expression .md #expressionlog10 ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that computes the base -10 logarithm of a numeric value . |
112112| [logicalMaximum (second , others )](./firestore_lite_pipelines .expression .md #expressionlogicalmaximum ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns the larger value between this expression and another expression , based on Firestore 's value type ordering . |
113113| [logicalMinimum (second , others )](./firestore_lite_pipelines .expression .md #expressionlogicalminimum ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns the smaller value between this expression and another expression , based on Firestore 's value type ordering . |
114+ | [mapEntries ()](./firestore_lite_pipelines .expression .md #expressionmapentries ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns the entries of a map as an array of objects with 'k ' and 'v ' fields . |
114115| [mapGet (subfield )](./firestore_lite_pipelines .expression .md #expressionmapget ) | | <b ><i >(Public Preview )</i ></b > Accesses a value from a map (object ) field using the provided key . |
116+ | [mapKeys ()](./firestore_lite_pipelines .expression .md #expressionmapkeys ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns the keys of a map . |
115117| [mapMerge (secondMap , otherMaps )](./firestore_lite_pipelines .expression .md #expressionmapmerge ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that merges multiple map values . |
116118| [mapRemove (key )](./firestore_lite_pipelines .expression .md #expressionmapremove ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that removes a key from the map produced by evaluating this expression . |
117119| [mapRemove (keyExpr )](./firestore_lite_pipelines .expression .md #expressionmapremove ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that removes a key from the map produced by evaluating this expression . |
120+ | [mapSet (key , value , moreKeyValues )](./firestore_lite_pipelines .expression .md #expressionmapset ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns a new map with the specified entries added or updated . |
121+ | [mapValues ()](./firestore_lite_pipelines .expression .md #expressionmapvalues ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that returns the values of a map . |
118122| [maximum ()](./firestore_lite_pipelines .expression .md #expressionmaximum ) | | <b ><i >(Public Preview )</i ></b > Creates an aggregation that finds the maximum value of a field across multiple stage inputs . |
119123| [minimum ()](./firestore_lite_pipelines .expression .md #expressionminimum ) | | <b ><i >(Public Preview )</i ></b > Creates an aggregation that finds the minimum value of a field across multiple stage inputs . |
120124| [mod (expression )](./firestore_lite_pipelines .expression .md #expressionmod ) | | <b ><i >(Public Preview )</i ></b > Creates an expression that calculates the modulo (remainder ) of dividing this expression by another expression . |
@@ -2305,6 +2309,33 @@ field("timestamp").logicalMinimum(Function.currentTimestamp());
23052309
23062310```
23072311
2312+ ## Expression .mapEntries ()
2313+
2314+ > This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
2315+ >
2316+
2317+ Creates an expression that returns the entries of a map as an array of objects with 'k ' and 'v ' fields .
2318+
2319+ <b >Signature :</b >
2320+
2321+ ```typescript
2322+ mapEntries (): FunctionExpression ;
2323+ ```
2324+ <b >Returns :</b >
2325+
2326+ [FunctionExpression ](./firestore_lite_pipelines .functionexpression .md #functionexpression_class )
2327+
2328+ A new `Expression ` representing the entries of the map .
2329+
2330+ ### Example
2331+
2332+
2333+ ```typescript
2334+ // Get the entries of the 'address' map
2335+ field ("address ").mapEntries ();
2336+
2337+ ```
2338+
23082339## Expression .mapGet ()
23092340
23102341> This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
@@ -2339,6 +2370,33 @@ field("address").mapGet("city");
23392370
23402371```
23412372
2373+ ## Expression .mapKeys ()
2374+
2375+ > This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
2376+ >
2377+
2378+ Creates an expression that returns the keys of a map .
2379+
2380+ <b >Signature :</b >
2381+
2382+ ```typescript
2383+ mapKeys (): FunctionExpression ;
2384+ ```
2385+ <b >Returns :</b >
2386+
2387+ [FunctionExpression ](./firestore_lite_pipelines .functionexpression .md #functionexpression_class )
2388+
2389+ A new `Expression ` representing the keys of the map .
2390+
2391+ ### Example
2392+
2393+
2394+ ```typescript
2395+ // Get the keys of the 'address' map
2396+ field ("address ").mapKeys ();
2397+
2398+ ```
2399+
23422400## Expression .mapMerge ()
23432401
23442402> This API is provided as a preview for developers and may change based on feedback that we receive . Do not use this API in a production environment .
@@ -2444,6 +2502,69 @@ map({foo: 'bar', baz: true}).mapRemove(constant('baz'));
24442502
24452503```
24462504
2505+ ## Expression.mapSet()
2506+
2507+ > This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
2508+ >
2509+
2510+ Creates an expression that returns a new map with the specified entries added or updated.
2511+
2512+ <b >Signature:</b >
2513+
2514+ ``` typescript
2515+ mapSet (key : string | Expression , value : unknown , ... moreKeyValues : unknown []): FunctionExpression ;
2516+ ```
2517+
2518+ #### Parameters
2519+
2520+ | Parameter | Type | Description |
2521+ | --- | --- | --- |
2522+ | key | string \| [ Expression] ( ./firestore_lite_pipelines.expression.md#expression_class ) | The key to set. |
2523+ | value | unknown | The value to set. |
2524+ | moreKeyValues | unknown\[\] | Additional key-value pairs to set. |
2525+
2526+ <b >Returns:</b >
2527+
2528+ [ FunctionExpression] ( ./firestore_lite_pipelines.functionexpression.md#functionexpression_class )
2529+
2530+ A new ` Expression ` representing the map with the entries set.
2531+
2532+ ### Example
2533+
2534+
2535+ ``` typescript
2536+ // Set the 'city' to "San Francisco" in the 'address' map
2537+ field (" address" ).mapSet (" city" , " San Francisco" );
2538+
2539+ ```
2540+
2541+ ## Expression.mapValues()
2542+
2543+ > This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
2544+ >
2545+
2546+ Creates an expression that returns the values of a map.
2547+
2548+ <b >Signature:</b >
2549+
2550+ ``` typescript
2551+ mapValues (): FunctionExpression ;
2552+ ```
2553+ <b >Returns:</b >
2554+
2555+ [ FunctionExpression] ( ./firestore_lite_pipelines.functionexpression.md#functionexpression_class )
2556+
2557+ A new ` Expression ` representing the values of the map.
2558+
2559+ ### Example
2560+
2561+
2562+ ``` typescript
2563+ // Get the values of the 'address' map
2564+ field (" address" ).mapValues ();
2565+
2566+ ```
2567+
24472568## Expression.maximum()
24482569
24492570> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
0 commit comments