We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94bea7 commit 144bf26Copy full SHA for 144bf26
packages/hypergraph/src/type/type.ts
@@ -16,6 +16,8 @@ export const Point = Schema.transform(Schema.String, Schema.Array(Number), {
16
encode: (points: readonly number[]) => points.join(','),
17
});
18
19
+export const optional = Schema.optional;
20
+
21
export const Relation = <S extends AnyNoContext>(schema: S) => {
22
const relationSchema = Field({
23
select: Schema.Array(schema) as unknown as Schema.Schema<ReadonlyArray<EntityWithRelation<S>>>,
0 commit comments