define({ date, img, organization, address, description, coordinates, event, categories, environment, age, isVerified }) {
    const docID = this._collection.insert({
      date,
      img,
      organization,
      address,
      description,
      coordinates,
      event,
      categories,
      environment,
      age,
      isVerified,
    });
    // this._collection.createIndex({ '$**': 'text' });
    return docID;
  }
/**
   * Defines a new Opportunity item.
   * @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.
   * @return {String} the docID of the new document.
   */
Defines a new Opportunity item.
@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.
@return {String} the docID of the new document.
Defines a new Opportunity item . @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 . @return { String } the docID of the new document .
define({ date, img, organization, address, description, coordinates, event, categories, environment, age, isVerified }) {
    const docID = this._collection.insert({
      date,
      img,
      organization,
      address,
      description,
      coordinates,
      event,
      categories,
      environment,
      age,
      isVerified,
    });
    return docID;
  }
define ( { date , img , organization , address , description , coordinates , event , categories , environment , age , isVerified } ) { const docID = this . _collection . insert ( { date , img , organization , address , description , coordinates , event , categories , environment , age , isVerified , } ) ; return docID ; }
Defines a new Opportunity item.
Defines a new Opportunity item .
// this._collection.createIndex({ '$**': 'text' });