Convert view to mongo