Search code examples
restorientdb

OrientDB REST: How to create an Edge class?


I'm looking for a way to create a custom edge class by using the REST API of OrientDB.

I couldn't find a way to specify the SuperClass.


Solution

  • You can use the CREATE CLASS <class-name> EXTENDS E sql command via HTTP: https://orientdb.com/docs/last/OrientDB-REST.html and https://orientdb.com/docs/last/SQL-Create-Class.html