public static Bson rename ( final String fieldName , final String newFieldName ) { notNull ( "newFieldName" , newFieldName ) ; return new SimpleUpdate < String > ( fieldName , newFieldName , "$rename" ) ; }
Creates an update that renames a field .