app/imports/api/user/UserCollection.js
/**
     * Defines a new User item
     * @param username: the username of the user.
     * @param autoMPG: the mpg of the user's vehicle.
     * @param homeRoundTrip: the round trip distance between the user's house and their work.
     * @return {String} the docID of the new document.
     */
Defines a new User item
@param username: the username of the user.
@param autoMPG: the mpg of the user's vehicle.
@param homeRoundTrip: the round trip distance between the user's house and their work.
@return {String} the docID of the new document.
Defines a new User item @param username : the username of the user . @param autoMPG : the mpg of the user ' s vehicle . @param homeRoundTrip : the round trip distance between the user ' s house and their work . @return { String } the docID of the new document .
define({ username, autoMPG, homeRoundTrip }) {
    const theme = 'light';
    const docID = this._collection.insert({
      username,
      autoMPG,
      homeRoundTrip,
      theme,
    });
    return docID;
  }
define ( { username , autoMPG , homeRoundTrip } ) { const theme = 'light' ; const docID = this . _collection . insert ( { username , autoMPG , homeRoundTrip , theme , } ) ; return docID ; }
Defines a new User item
 @param username: the username of the user.
Defines a new User item @param username : the username of the user .