Rest 创建新类时,当前数据库中已存在OrientDb类
使用orientdb restful api创建类总是返回错误消息Rest 创建新类时,当前数据库中已存在OrientDb类,rest,orientdb,graph-databases,Rest,Orientdb,Graph Databases,使用orientdb restful api创建类总是返回错误消息 { "errors": [ { "code": 500, "reason": 500, "content": "com.orientechnologies.orient.core.exception.OSchemaException: Class 'testclass' already exists in current database name=\"test\"" } ] } 不管类名是什么,它总是返
{
"errors": [
{
"code": 500,
"reason": 500,
"content": "com.orientechnologies.orient.core.exception.OSchemaException: Class 'testclass' already exists in current database name=\"test\""
}
]
}
不管类名是什么,它总是返回该错误,但无论如何都会创建该类
我以类testclass扩展V的形式发布
有什么想法吗
我更喜欢在api中使用create class endpoint,但我在文档中找不到创建类时如何指定抽象我尝试了你的案例,它对我有效,我使用了Postman和OrientDB版本2.2.27,从我的屏幕上可以看到,类是正确创建的: 只有当我运行相同的命令两次时,我才会得到相同的错误,并且获得该错误是正确的,因为该类是以前创建的,所以它已经存在 希望能有帮助
您好,您使用的是哪个版本?谢谢