Factory function to create a Ref schema for the given target schema. Use this in schema definitions to declare reference fields.
class Task extends Type.makeObject<Task>(DXN.make('com.example.type.task', '0.1.0'))( Schema.Struct({ assignee: Ref.Ref(Person), // Creates a Ref schema }),) {} Copy
class Task extends Type.makeObject<Task>(DXN.make('com.example.type.task', '0.1.0'))( Schema.Struct({ assignee: Ref.Ref(Person), // Creates a Ref schema }),) {}
O(1) per call at schema-definition time; reads the target type annotation.
Factory function to create a Ref schema for the given target schema. Use this in schema definitions to declare reference fields.