Recipe for using the Direct MongoDB writer