Hey I'm new to OrientDB, and I wish to thank the creators for this great DB!
I'm using OrientDB 1.7 rc2, with .net (c#) by rest api.
I want to create an edge (Commented) between two vertices (User and
Publication) with the comment as an edge property (Commented.Content)
I tried to use server side function (addComment, parameters userRid,
pubRid, and content) but I got an error when content contains signle quote
symbol ' (surely escaping problem)
Now I try to use POST rest command (/document/) but I dont know how to
specify the in and out vertices in json
{
"@class":"Commented",
"Content":"This is my first comment!",
"PropertyNameForOutEdge":"#14:42",
"PropertyNameForInEdge":"#5:8",
}
btw I noticed two problems with rest api:
1. when calling connect, the session Id is not returned, instead a
"Set-Cookie" header is returned, but this is only useful for browsers, I
had to extract session Id from the header, it's better if it's returned in
headers AND in reponse body.
2. rest command to insert document (/document) throws a mysterious error
(had to dig for hours and compare with Studio requests to find the problem)
if we don't add ContentType = "application/json;charset=UTF-8" to the
request.
Thank you.
--
---
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.