createrelation

toc
<mm:createrelation> Creates a relation between two nodes.
see alsomaycreaterelation
attributes
  • role
    The role for the new relation.
  • source
    The id of the node which will be on the source side of the relation.
  • destination
    The id of the node which will be on the destination side of the relation.
nodeprovider attributes
cloudreferrer attributes
contextwriter attributes
contextreferrer attributes
example 1
<mm:cloud>
<mm:transaction id="my_transaction">
<mm:createnode type="news" id="my_news">
   <mm:setfield name="title">Todays news</mm:setfield>
   <mm:setfield name="subtitle">There happened a lot today</mm:setfield>
</mm:createnode>
<mm:node number="1808" id="my_author" />
<mm:createrelation role="author" source="my_author" destination="my_news" />
</mm:transaction>
</mm:cloud>