Skip to content
  • Chris Elder's avatar
    [FAB-7969] Remove CouchDB "data" envelope · 5185bada
    Chris Elder authored
    
    
    Chaincode data is saved in CouchDB under a JSON "data" envelope.
    
    For queries, peer automatically re-writes chaincode query to account for
    data envelope.
    
    For indexes, chaincode author must specify the data envelop when referencing
    fields.
    
    Need to make the experience consistent, by removing the "data" envelope.
    This will fix the usability issue, and also simplify the code, eliminating
    other possible defects.
    
    This change is only possible in 1.1, since the upgrade from 1.0 to 1.1 will
    rebuild CouchDB state database using the enhanced 1.1 CouchDB data structure.
    
    Change-Id: I2f7345fe4f4aaa17324c26f1e32bec2b3a5f67db
    Signed-off-by: default avatarChris Elder <chris.elder@us.ibm.com>
    5185bada