thank you

среда, 18 декабря 2013 г., 16:39:59 UTC+4 пользователь Lvc@ написал:
>
> Hi,
> look at the URL you sent: 
> https://github.com/orientechnologies/orientdb/wiki/OrientDB-REST#example-5. 
> "operations" property must be a collection. Try this instead:
>
> {"transaction":true,"operations":[{"type":"cmd","language":"sql","command":"select
>  
> * from PersonCV"}]}
>
> Lvc@
>
>
>
> On 18 December 2013 13:20, Lebnik <[email protected] <javascript:>> wrote:
>
>> I do basic authorization and then send POST data to 
>> http://localhost:2480/batch/lebnik
>> My POST 
>> data: 
>> {"transaction":true,"operations":{"type":"cmd","language":"sql","command":"select
>>  
>> * from PersonCV"}}
>> And get error: java.lang.ClassCastException: java.util.LinkedHashMap 
>> cannot be cast to java.util.Collection
>> Why? I do all on instruction 
>> https://github.com/orientechnologies/orientdb/wiki/OrientDB-REST#post---batch
>> In console this request:
>> orientdb> select * from PersonCV
>>
>>
>> ----+-----+-------+----------+-----------
>> #   |@RID |name   |in_LovesCE|out_LovesCE
>>
>>
>> ----+-----+-------+----------+-----------
>> 0   |#11:0|Joanie |#11:1     |null       
>> 1   |#11:1|Chachie|null      |[2]        
>> 2   |#11:2|Jimmy  |#11:1     |null       
>>
>>
>> ----+-----+-------+----------+-----------
>>
>>
>>  -- 
>>  
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 

--- 
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/groups/opt_out.

Reply via email to