update(docID, { date, img, organization, address, description, coordinates, event, categories, environment, age, registeredVolunteers, isVerified }) {
    const updateData = {};
    if (date)updateData.date = date;
    if (img) updateData.img = img;
    if (organization) updateData.organization = organization;
    if (address) updateData.address = address;
    if (description) updateData.description = description;
    if (coordinates) updateData.coordinates = coordinates;
    if (event) updateData.event = event;
    if (categories) updateData.categories = categories;
    if (environment) updateData.environment = environment;
    if (age) updateData.age = age;
    if (registeredVolunteers) updateData.registeredVolunteers = registeredVolunteers;
    if (isVerified) {
      updateData.isVerified = true;
    } else {
      updateData.isVerified = false;
    }
    if (isVerified) updateData.isVerified = true;
    this._collection.update(docID, { $set: updateData });
  }
/**
   * Updates the given document.
   * @param docID the id of the document to update.
   * @param date the date.
   * @param img the image of the item.
   * @param organization  the organization the item belongs to.
   * @param address  the address of the item.
   * @param description  the description of the item.
   * @param coordinates  the coordinates of the item.
   * @param event  the name of the item.
   * @param categories  the categories of the item.
   * @param environment  the environment of the item.
   * @param age the age group of the item.
   * @param isVerified if the item was verified by the admin.
   */
Updates the given document.
@param docID the id of the document to update.
@param date the date.
@param img the image of the item.
@param organization  the organization the item belongs to.
@param address  the address of the item.
@param description  the description of the item.
@param coordinates  the coordinates of the item.
@param event  the name of the item.
@param categories  the categories of the item.
@param environment  the environment of the item.
@param age the age group of the item.
@param isVerified if the item was verified by the admin.
Updates the given document . @param docID the id of the document to update . @param date the date . @param img the image of the item . @param organization the organization the item belongs to . @param address the address of the item . @param description the description of the item . @param coordinates the coordinates of the item . @param event the name of the item . @param categories the categories of the item . @param environment the environment of the item . @param age the age group of the item . @param isVerified if the item was verified by the admin .
update(docID, { date, img, organization, address, description, coordinates, event, categories, environment, age, registeredVolunteers, isVerified }) {
    const updateData = {};
    if (date)updateData.date = date;
    if (img) updateData.img = img;
    if (organization) updateData.organization = organization;
    if (address) updateData.address = address;
    if (description) updateData.description = description;
    if (coordinates) updateData.coordinates = coordinates;
    if (event) updateData.event = event;
    if (categories) updateData.categories = categories;
    if (environment) updateData.environment = environment;
    if (age) updateData.age = age;
    if (registeredVolunteers) updateData.registeredVolunteers = registeredVolunteers;
    if (isVerified) {
      updateData.isVerified = true;
    } else {
      updateData.isVerified = false;
    }
    if (isVerified) updateData.isVerified = true;
    this._collection.update(docID, { $set: updateData });
  }
update ( docID , { date , img , organization , address , description , coordinates , event , categories , environment , age , registeredVolunteers , isVerified } ) { const updateData = { } ; if ( date ) updateData . date = date ; if ( img ) updateData . img = img ; if ( organization ) updateData . organization = organization ; if ( address ) updateData . address = address ; if ( description ) updateData . description = description ; if ( coordinates ) updateData . coordinates = coordinates ; if ( event ) updateData . event = event ; if ( categories ) updateData . categories = categories ; if ( environment ) updateData . environment = environment ; if ( age ) updateData . age = age ; if ( registeredVolunteers ) updateData . registeredVolunteers = registeredVolunteers ; if ( isVerified ) { updateData . isVerified = true ; } else { updateData . isVerified = false ; } if ( isVerified ) updateData . isVerified = true ; this . _collection . update ( docID , { $set : updateData } ) ; }
Updates the given document.
Updates the given document .