Hi,<br><br>Few days back I saw a discussion regarding adding an article to topics. I was successful in doing that.<br>But, I&#39;m not at all finding a way to get that content back through a query !! Basically what I don&#39;t understand is the way in which the objects(or elements in the MQL infrastructure) are arranged, and what is the relationship between them. For example, in the write tutorial, a code segment says (I used this one to add article to my test topic on the sandbox):<br>
<br><pre class="programlisting"><font style="font-family: arial,helvetica,sans-serif;" size="2">result = metaweb.write({&#39;create&#39;:&#39;unless_exists&#39;,<br>                        &#39;type&#39;:&#39;/common/topic&#39;,<br>
                        &#39;id&#39;:None,<br>                        &#39;name&#39;:title,<br>                        &#39;article&#39; : { &#39;create&#39;:&#39;unless_exists&#39;,<br>                                      &#39;type&#39;:&#39;/common/document&#39;,<br>
                                      &#39;id&#39;:None,<br>                                      &#39;content&#39;:content_id }},<br>                       credentials)</font><br></pre>So, I interpret that &#39;article&#39; is a &quot;property&quot; of the object named by title here (TestObject3 in my case). Assuming this, if I query back for the article, it gives me &#39;null&#39; :<br>
<br>QUERY:<br>{<br>&nbsp; &quot;article&quot; : [],<br>&nbsp; &quot;name&quot; : &quot;TestObject3&quot;,<br>&nbsp; &quot;type&quot; : &quot;/common/topic&quot;<br>}<br>RESPONSE:<br>{<br>&nbsp; &quot;article&quot; : [<br>&nbsp;&nbsp;&nbsp; null<br>&nbsp; ],<br>
&nbsp; &quot;name&quot; : &quot;TestObject3&quot;,<br>&nbsp; &quot;type&quot; : &quot;/common/topic&quot;<br>}<br><br>while I can view the article when i see through browser !! So either my understanding is wrong OR there seems to be some problem (which is highly unlikely) !!<br>
Anyways, can anyone point me to some link/document where the various elements and their relationships are clearly mentioned !! (By relationship I mean to understand like which elements contains which one, which can be a property of other.. and so on... )... I&#39;m already very confused about all this !!<br>
<br>Regards,<br>Tej<br><br>