Search code examples
orientdb

How can I create a link in orientdb studio?


In this link there is a very basic example.

I have a class, its name is "dog" and it has a "name" property and a "childs" property. The "childs" property type is LINKLIST.

When a try to create a new dog object I crete a "childs" field but I don't know how to fill it.

Please point me to a more complete tutorial (actualy I search it with out success).


Solution

  • You can use the query for that:

    insert into animal set name = 'dog', children = [<rid>]
    

    where <rid> is the record id of the child.