org.springframework.data.mongodb.core.aggregation

Class StringOperators.Trim

  • java.lang.Object
    • org.springframework.data.mongodb.core.aggregation.StringOperators.Trim
  • All Implemented Interfaces:
    AggregationExpression
    Enclosing class:
    StringOperators


    public static class StringOperators.Trim
    extends Object
    AggregationExpression for $trim which removes whitespace or the specified characters from the beginning and end of a string.
    NOTE: Requires MongoDB 4.0 or later.
    Since:
    2.1
    Author:
    Christoph Strobl