简体   繁体   中英

What are relationships in hyperledger composer?

您能否解释由“箭头->”定义的Hyperledger Composer中的关系概念?

A relationship in the Composer language is a tuple composed of:

  1. The namespace of the type being referenced
  2. The type name of the type being referenced
  3. The identifier of the instance being referenced

A Relationship is a typed pointer to an instance. ie 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM