def update_one(filter, update, options = {})
      find(filter, options).update_one(update, options)
    end
def update_one(filter, update, options = {})
      find(filter, options).update_one(update, options)
    end
Update a single document in the collection.

 @example Update a single document in the collection.
   collection.update_one({ name: 'test'}, '$set' => { name: 'test1'})

 @param [ Hash ] filter The filter to use.
 @param [ Hash ] update The update statement.
 @param [ Hash ] options The options.

 @option options [ true, false ] :upsert Whether to upsert if the
   document doesn't exist.
 @option options [ true, false ] :bypass_document_validation Whether or
   not to skip document level validation.
 @option options [ Hash ] :collation The collation to use.
 @option options [ Array ] :array_filters A set of filters specifying to which array elements
   an update should apply.
 @option options [ Session ] :session The session to use.

 @return [ Result ] The response from the database.

 @since 2.1.0