Figured out what the problem was. I was passing in rid as string but it 
takes rid as the object which is returned while querying over the database. 

On Wednesday, July 22, 2015 at 8:34:59 PM UTC+5:30, Vipul Maheshwari wrote:
>
> Here the value of column is the name of column where the data is to be 
> inserted, rid has value "#15:5" 
>
> data = {};
> data[column] = rid;
> orientDb.update(className).set(data)
>     .where({_id:id}).scalar().then(function(res){
>         console.log(res);
>     },function(err){
>         console.log(err);
>     });
>
>
> On Wednesday, July 22, 2015 at 8:08:31 PM UTC+5:30, Vipul Maheshwari wrote:
>>
>> I am using orientjs driver, and trying to update a record. The record 
>> which i am updating has a column of type link but
>> when i pass in the rid it throws an error. Can someone suggest me how to 
>> do this?
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to