mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-15 09:08:27 +00:00
39 lines
901 B
Haxe
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]
|
|
}
|