What is the difference between o and -- in Fabric Composer

0 votes

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?

Aug 25, 2018 in Blockchain by sabby
• 4,370 points
772 views

1 answer to this question.

0 votes
'o' indicates has-a relationship

'-->' indicates pass by reference
answered Aug 25, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

0 votes
1 answer

What is the difference between if() and require() statement in solidity??

If() and require() have separate functions and ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points
5,052 views
+3 votes
1 answer

What is the difference between online and offline hyperledger composer?

Hey @Renu353! Well, it's good that you ...READ MORE

answered Sep 21, 2018 in Blockchain by Omkar
• 69,220 points
908 views
0 votes
1 answer

What are the differences between chain and state database in hyperledger fabric?

There are two place which "store" data ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
2,368 views
0 votes
2 answers

What is the difference between full node and partial node?

We need different types of nodes to ...READ MORE

answered May 31, 2019 in Blockchain by Sourav kumar
5,791 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,004 views
+1 vote
1 answer
0 votes
1 answer

What is the difference between ipfs and ethereum?

Blockchain and IPFS are based on similar concepts of decentralized ...READ MORE

answered Nov 15, 2018 in Blockchain by Perry
• 17,100 points
3,745 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP