@@ -1459,15 +1459,15 @@ public protocol Expression: Sendable {
1459
1459
///
1460
1460
/// ```swift
1461
1461
/// // Subtract duration from "unitField"/"amountField" from "timestamp"
1462
- /// Field("timestamp").timestampSub (amount: Field("amountField"), unit: Field("unitField"))
1462
+ /// Field("timestamp").timestampSubtract (amount: Field("amountField"), unit: Field("unitField"))
1463
1463
/// ```
1464
1464
///
1465
- /// - Parameter unit: An `Expr ` evaluating to the unit of time string (e.g., "day", "hour").
1465
+ /// - Parameter unit: An `Expression ` evaluating to the unit of time string (e.g., "day", "hour").
1466
1466
/// Valid units are "microsecond", "millisecond", "second", "minute", "hour",
1467
1467
/// "day".
1468
- /// - Parameter amount: An `Expr ` evaluating to the amount (Int) of the unit to subtract.
1468
+ /// - Parameter amount: An `Expression ` evaluating to the amount (Int) of the unit to subtract.
1469
1469
/// - Returns: A new "FunctionExpression" representing the resulting timestamp.
1470
- func timestampSub ( amount: Expression , unit: Expression ) -> FunctionExpression
1470
+ func timestampSubtract ( amount: Expression , unit: Expression ) -> FunctionExpression
1471
1471
1472
1472
/// Creates an expression that subtracts a specified amount of time from this timestamp
1473
1473
/// expression,
@@ -1476,13 +1476,13 @@ public protocol Expression: Sendable {
1476
1476
///
1477
1477
/// ```swift
1478
1478
/// // Subtract 1 day from the "timestamp" field.
1479
- /// Field("timestamp").timestampSub (1, .day)
1479
+ /// Field("timestamp").timestampSubtract (1, .day)
1480
1480
/// ```
1481
1481
///
1482
1482
/// - Parameter unit: The `TimeUnit` enum representing the unit of time.
1483
1483
/// - Parameter amount: The literal `Int` amount of the unit to subtract.
1484
1484
/// - Returns: A new "FunctionExpression" representing the resulting timestamp.
1485
- func timestampSub ( _ amount: Int , _ unit: TimeUnit ) -> FunctionExpression
1485
+ func timestampSubtract ( _ amount: Int , _ unit: TimeUnit ) -> FunctionExpression
1486
1486
1487
1487
/// Creates an expression that returns the document ID from a path.
1488
1488
///
0 commit comments