prepareItems(items) {
    if(!items)
      return items;
 
    if (items.total_count)
      this.total_count = items.total_count;
    
    if(items.items)
      items = items.items; // this is an exceptional behavior for Magento2 api  for attributes

    return items;
  }
/**  Regarding Magento2 api docs and reality we do have an exception here that items aren't listed straight in the response but under "items" key */
Regarding Magento2 api docs and reality we do have an exception here that items aren't listed straight in the response but under "items" key
Regarding Magento2 api docs and reality we do have an exception here that items aren ' t listed straight in the response but under " items " key
prepareItems(items) {
    if(!items)
      return items;
    if (items.total_count)
      this.total_count = items.total_count;
    if(items.items)
      items = items.items; 
    return items;
  }
prepareItems ( items ) { if ( ! items ) return items ; if ( items . total_count ) this . total_count = items . total_count ; if ( items . items ) items = items . items ; return items ; }
Regarding Magento2 api docs and reality we do have an exception here that items aren't listed straight in the response but under "items" key
Regarding Magento2 api docs and reality we do have an exception here that items aren ' t listed straight in the response but under " items " key
// this is an exceptional behavior for Magento2 api  for attributes