use of org.bson.BsonJavaScriptWithScope in project mongo-java-driver by mongodb.
the class BsonJavaScriptWithScopeCodec method decode.
@Override
public BsonJavaScriptWithScope decode(final BsonReader bsonReader, final DecoderContext decoderContext) {
String code = bsonReader.readJavaScriptWithScope();
BsonDocument scope = documentCodec.decode(bsonReader, decoderContext);
return new BsonJavaScriptWithScope(code, scope);
}
Aggregations