powered by
mongo.distinct(mongo, ns, key, query = mongo.bson.empty())
mongo.command
mongo.simple.command
mongo.find
mongo <- mongo.create() if (mongo.is.connected(mongo)) { keys <- mongo.distinct(mongo, "test.people", "name") print(keys) }
Run the code above in your browser using DataLab