Const
Factory function to create an ECHO relation schema. Adds relation metadata annotations to an Effect schema.
const WorksFor = Schema.Struct({ role: Schema.String,}).pipe(Type.relation({ typename: 'com.example.type.works-for', version: '0.1.0', source: Person, target: Company,})); Copy
const WorksFor = Schema.Struct({ role: Schema.String,}).pipe(Type.relation({ typename: 'com.example.type.works-for', version: '0.1.0', source: Person, target: Company,}));
Factory function to create an ECHO relation schema. Adds relation metadata annotations to an Effect schema.