I am developing a simple Hyperledger Fabric Wallet type application in Java chaincode with basically 2 models: Wallet and MoneyTransfer. MoneyTransfer has the data, amount and ids for "fromWallet" and "targetWallet".
I have not found examples of how to do a query in the ChaincodeStub to fetch, for example, all MoneyTransfer's for a specific walletId. Is this possible or models can only be fetched by id?
Any URL for doc or help on how to do this? (Samples I have found just fetch models by Id but don't perform queries based on specific properties in the models) Thanks.