/** * <pre> * { $insert : { path: value } } * </pre> */ public static AppendInsert insert(String field, AppendInsertLiteral value) { return new AppendInsert("$insert", field).more(value); }
/** * <pre> * { $append : { path: value } } * </pre> */ public static AppendInsert append(String field, AppendInsertLiteral value) { return new AppendInsert("$append", field).more(value); }
/** * Adds a new value to append/insert */ public AppendInsert more(AppendInsertLiteral value) { return more(value.toJson()); } }