lib/model/table/EntityProxy.js
/**
   * Returns all attributes (including partition key, row key) of the entity, and
   * depending on @param mode the odata type specifications.
   *
   * @param {any} mode is (nometadata|minimalmetadata|fullmetadata)
   * @returns
   * @memberof EntityProxy
   */
Returns all attributes (including partition key, row key) of the entity, and
depending on @param mode the odata type specifications.


Returns all attributes ( including partition key row key ) of the entity and depending on @param mode the odata type specifications .
attribs(mode) {
    let filteredAttribs = {};
    if (mode === ODataMode.FULL) {
      return this._.attribs; 
    } else if (mode === ODataMode.MINIMAL) {
      for (const key of Object.keys(this._.attribs)) {
        if (key.includes("Timestamp@odata.type")) {
          continue;
        }
        filteredAttribs[key] = this._.attribs[key];
      }
    } else {
      const attribs = {};
      for (const key of Object.keys(this._.attribs)) {
        if (key.includes("@odata.type")) {
          continue;
        }
        filteredAttribs[key] = this._.attribs[key];
      }
    }
    return filteredAttribs;
  }
attribs ( mode ) { let filteredAttribs = { } ; if ( mode === ODataMode . FULL ) { return this . _ . attribs ; } else if ( mode === ODataMode . MINIMAL ) { for ( const key of Object . keys ( this . _ . attribs ) ) { if ( key . includes ( "Timestamp@odata.type" ) ) { continue ; } filteredAttribs [ key ] = this . _ . attribs [ key ] ; } } else { const attribs = { } ; for ( const key of Object . keys ( this . _ . attribs ) ) { if ( key . includes ( "@odata.type" ) ) { continue ; } filteredAttribs [ key ] = this . _ . attribs [ key ] ; } } return filteredAttribs ; }
Returns all attributes (including partition key, row key) of the entity, and
 depending on @param mode the odata type specifications.
Returns all attributes ( including partition key row key ) of the entity and depending on @param mode the odata type specifications .
// this is described here: // https://docs.microsoft.com/en-us/rest/api/storageservices/payload-format-for-table-service-operations // also return the OData type specifications // In case of no metadata we filter out most of the OData info and "Timestamp@odata.type" // In case of no metadata we filter out all the OData type specifications