How to get the edge object data of a vertex in orient db using python
<pre><code>import pyorient

# create connection 
client = pyorient.OrientDB("localhost", 2424) 

# open databse 
client.db_open( "Apple", "admin", "admin" )

requiredObj = client.command(' select from chat where app_cat=appCategory and module=module and type=type and prob_cat=problemCategory  ')

print requiredObj[0]
</code></pre>

<p>Output:</p>

<pre><code>#Output
{'@Chat':{'prob_cat': 'PERFORMANCE', 'type': 'NON FUNCTIONAL', 'module': 'app', 'out_': &lt;pyorient.otypes.OrientBinaryObject object at 0x10d1d6c10&gt;, 'app_cat': 'RETAIL', 'issue': 'Non Capture of Data'},'version':7,'rid':'#22:0'}
</code></pre>

<p>Here I want to rebind the <code>out_': &lt;pyorient.otypes.OrientBinaryObject object&gt;</code> using python.  When I try this code to debind the object this error comes</p>

<pre><code>print requiredObj[0].out_[0]

TypeError: 'OrientBinaryObject' object does not support indexing
</code></pre>

<p>You could use </p>

<pre><code>requiredObj = client.command(' select expand(out()[0]) from chat where app_cat=appCategory and module=module and type=type and prob_cat=problemCategory  ')

print(requiredObj[0])
</code></pre>

<p>Hope it helps</p>

python orientdb