Pass object to OrientDB function

43 views
Skip to first unread message

Artem Nikiforov

unread,
Mar 7, 2015, 7:21:34 AM3/7/15
to orient-...@googlegroups.com
I want to pass json serialized object to stored function in call made via REST interface.
[How ]can it be done?

Red-0ne

unread,
Mar 7, 2015, 10:10:19 AM3/7/15
to orient-...@googlegroups.com
You can do it as per function documentation but you have to url encode your serialized object.

In order to pass:
{"x":1,"y":2}

you have to send:
http://localhost:2480/function/testdb/testfn/%7B%22x%22%3A1%2C%22y%22%3A2%7D

Artem Nikiforov

unread,
Mar 7, 2015, 10:38:40 AM3/7/15
to orient-...@googlegroups.com
Thank you very much, I'll try this.

суббота, 7 марта 2015 г., 18:10:19 UTC+3 пользователь Red-0ne написал:

Suyog Kale

unread,
Aug 26, 2016, 9:02:06 AM8/26/16
to OrientDB
Hello,

Can I call server side function with post method and instead of sending data in url, send it in form object ? if yes then is there any sample code/example for how to do it?
Reply all
Reply to author
Forward
0 new messages