简体   繁体   中英

query to see class attribute

Is there a SQL syntax to see the value of an class attribute using WebUI of OrientDB ?

I can use the following to edit the value : ALTER CLASS Employee CUSTOM minAge=16 ( doc ) But I can't find a way to check out the value set.

I can do that using Java API : graph.getVertexType("Employee").getCustom("minAge") I need this as a SQL query.

my orientdb version : 2.1.19

Try this:

SELECT FROM (
   SELECT expand(classes) from metadata:schema
) WHERE name = 'theClassName'

OrientDB v 2.1.x is not supported anymore, I strongly suggest you to upgrade to v 3.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM