A chaincode based on Hyperledger uses stub.PutState and stub.GetState to interact with the data base. However, if I have a struct with more than one attibutes, for example :
person {
"ID": "123",
"firstname":"joe",
"lastname":"doe",
"age":"34",
}
Then if I want to update the age, what arguments should I send to the method ?
I noticed that there is stub.CreateTable method which seems to be more convenient for my case, however, I couldn't find any document or explication about how to use this method. Would you please give me a link to the document or some brief explication please ?
Thanks.