type SchemaFromSource<T> = Prettify<{ [K in keyof T]: T[K] extends CollectionImpl<any, any, any, any, any> ? InferCollectionType<T[K]> : T[K] extends QueryBuilder<infer TContext> ? GetResult<TContext> : never }>;
type SchemaFromSource<T> = Prettify<{ [K in keyof T]: T[K] extends CollectionImpl<any, any, any, any, any> ? InferCollectionType<T[K]> : T[K] extends QueryBuilder<infer TContext> ? GetResult<TContext> : never }>;
Defined in: packages/db/src/query/builder/types.ts:98
SchemaFromSource - Converts a Source definition into a ContextSchema
This transforms the input to from() into the schema format used throughout the query builder. For each alias in the source:
The Prettify wrapper ensures clean type display in IDEs.
T extends Source
