Can you explain the concept of relationships in hyperledger composer, defined by the "arrow -->"?
Asked
Active
Viewed 430 times
1 Answers
0
A relationship in the Composer language is a tuple composed of:
- The namespace of the type being referenced
- The type name of the type being referenced
- The identifier of the instance being referenced
A Relationship is a typed pointer to an instance. i.e the relationship with
namespace = 'org.acme',
type = 'Vehicle',
id = 'ABC'
creates a pointer that points at an instance of org.acme.Vehicle with the id ABC.
For more details you can have use below links.
https://hyperledger.github.io/composer/jsdoc/module-composer-common.Relationship.html
https://hyperledger.github.io/composer/reference/cto_language.html

kots
- 320
- 1
- 7