Skip to content

Commit 9489ddd

Browse files
add update expression combiner operator
1 parent 024d833 commit 9489ddd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 0.0.14-alpha
2+
* Implement update expression combiners.
3+
14
### 0.0.13-alpha
25
* Implement update expression combiners.
36

src/FSharp.DynamoDB/Expression/ExpressionContainers.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ type UpdateExpression<'TRecord> internal (updateOps : UpdateOperations) =
9696

9797
override __.GetHashCode() = hash updateOps.UpdateOps
9898

99+
static member (&&&) (this : UpdateExpression<'TRecord>, that : UpdateExpression<'TRecord>) =
100+
UpdateExpression.Combine(this, that)
99101

100-
type UpdateExpression =
102+
and UpdateExpression =
101103
/// Combines a collection of compatible update expressions into a single expression.
102104
static member Combine([<ParamArray>]exprs : UpdateExpression<'TRecord> []) =
103105
match exprs with

0 commit comments

Comments
 (0)