core/helix/schema.hx
Harshith Mullapudi 0853a30897 Feat: added API
2025-06-03 10:04:12 +05:30

39 lines
901 B
Haxe

// Start building your schema here.
//
// The schema is used to to ensure a level of type safety in your queries.
//
// The schema is made up of Node types, denoted by N::,
// and Edge types, denoted by E::
//
// Under the Node types you can define fields that
// will be stored in the database.
//
// Under the Edge types you can define what type of node
// the edge will connect to and from, and also the
// properties that you want to store on the edge.
//
// Example:
//
// N::User {
// Name: String,
// Label: String,
// Age: Integer,
// IsAdmin: Boolean,
// }
//
// E::Knows {
// From: User,
// To: User,
// Properties: {
// Since: Integer,
// }
// }
//
// For more information on how to write queries,
// see the documentation at https://docs.helix-db.com
// or checkout our GitHub at https://github.com/HelixDB/helix-db
V::Embedding {
vec: [F64]
}