Function: Schema()
Schema<
T,P>(schemaTypes,mapping):Struct<{ [K in string | number | symbol]: ReturnType<T[K]> & { id: string } } &RelationTotalCountFields<T>>
Defined in: packages/hypergraph/src/entity/schema.ts:41
Type Parameters
T
T extends Record<string, SchemaBuilder>
P
P extends { [K in string | number | symbol]: Parameters<T[K]>[0] }
Parameters
schemaTypes
T
mapping
properties
P
types
string[]
Returns
Struct<{ [K in string | number | symbol]: ReturnType<T[K]> & { id: string } } & RelationTotalCountFields<T>>