Connect to MongoDB with R and the REST interface