16425/what-is-the-difference-between-o-and-in-fabric-composer
Look at the two versions of this code:
asset Document identified by docId { o String docId o Articles[] articles }
asset Document identified by docId { o String docId --> Articles[] articles }
Are both correct? If yes, when should we use what?
'o' indicates has-a relationship
'-->' indicates pass by reference
You could also refer to the document about CTO language:
Fabric Composer Modeling Language https://fabric-composer.github.io/reference/cto_language.html
If() and require() have separate functions and ...READ MORE
Hey @Renu353! Well, it's good that you ...READ MORE
There are two place which "store" data ...READ MORE
We need different types of nodes to ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
To read and add data you can ...READ MORE
This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE
Hyperledger Composer is an application development framework ...READ MORE
Blockchain and IPFS are based on similar concepts of decentralized ...READ MORE
OR
Already have an account? Sign in.