nebula-graphnebula-studio

execute command in nebula studio to create vertex item in database


as mentioned in nebula documentation here :

https://docs.nebula-graph.io/1.2.0/manual-EN/2.query-language/1.data-types/data-types/

nebula documentation create vertex datetime timestamp record in graph database

nebula> INSERT VERTEX school(name, create_time) VALUES hash("new"):("new", "1985-10-01 08:00:00")

error is:

-1005:Storage Error: The data type does not meet the requirements. Use the correct type of data.

and this:

-1005:Wrong vertex id type: hash("new")


Solution

  • for your first error please use 1669817257 this format or now() "1985-10-01 08:00:00")

    like this: enter image description here

    match (v:school) return v,now() limit 10;
    

    as you mentioned: nebula documentaion

    this documentation said:

    The underlying storage data type is: int64

    as you can see in this picture you can define two types of spaces there:

    define space nebula graph

    via this form you can create/define new space:

    define create new space in nebula graph

    when your id is not int64 your error is the second error message that you reported

    when your storage vid is int64 you should use hash