*Sorry, wrong button, here is the rest of that reply...*
Running OrientDB Server v1.6.1 (build 1057), note the null property at the
end:
create class Comment extends V
create property Comment.out_About link About
alter property Comment.out_About MANDATORY=true
alter property Comment.out_About NOTNULL=true
insert into Comment set body = "Hello", out_About = #11:42
Returns:
{
"result":[{
"@type":"d",
"@rid":"#14:0",
"@version":1,
"@class":"Comment",
"body":"Hello",
"out_About":*[1]*
}]
}
GET http://localhost:2480/document/test/14:0
{
@type: "d",
@rid: "#14:0",
@version: 1,
@class: "Comment",
body: "Hello",
out_About: *null*
}
Is this improved in later versions?
Thanks
Barry
--
---
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.