pyorient : How to create a vertex using record_create

213 Views Asked by At
class Person(Node):
    id = String(unique = True)
    name = String()

I tried the following way to create a Person node. But it's not working.

person = {
    'Person' : Person(name='Record', id = 1004).__dict__
}
client.record_create(0, person)

What am I doing wrong?

1

There are 1 best solutions below

3
On

You can use the "command" statement:

enter image description here