Class BindableMongoExpression

java.lang.Object
org.springframework.data.mongodb.BindableMongoExpression
All Implemented Interfaces:
MongoExpression

public class BindableMongoExpression extends Object implements MongoExpression
A MongoExpression using the ParameterBindingDocumentCodec for parsing a raw (json) expression. The expression will be wrapped within { ... } if necessary. The actual parsing and parameter binding of placeholders like ?0 is delayed upon first call on the the target Document via toDocument().
 $toUpper : $name                -> { '$toUpper' : '$name' }

 { '$toUpper' : '$name' }        -> { '$toUpper' : '$name' }

 { '$toUpper' : '?0' }, "$name"  -> { '$toUpper' : '$name' }
 
Some types might require a special Codec. If so, make sure to provide a CodecRegistry containing the required codec via withCodecRegistry(CodecRegistry).
Since:
3.2
Author:
Christoph Strobl