// Adding the @export directive when defining a table creates a REST endpoint
type Owner @table @export {
name: String
age: Int
address: String
phone: String
email: String
dogId: ID @indexed # Foreign key referencing the Pet table (Dog ID)
dog: [Dog] @relationship(from: dogId) # Relationship to the Dog table, linked by dogId
}...
type Dog @table @export {
id: ID @primaryKey # The unique identifier for each Dog (Primary Key)
name: String
breed: String
age: Int
}
// The REST endpoint can be accessed using the following URL when running a Harper application component on your local machine:
curl 'http://localhost:9926/Owner/'
Unified Data & Compute
Speed at Scale
Edge & Global Distribution
Simplicity & Maintainability
Custom Applications