R/mongoInsert.r

##' Insert a document
##'
##' Inserts a document into a Mongo collection
##'
##' @export
##' @param doc the list to be sent

mongoInsert <-
  function(conn, dbname, collection, doc){
    mongoSend(op_insert(paste(dbname, collection, sep="."), doc), conn)
  }
strongh/mongor documentation built on May 30, 2019, 8:32 p.m.