@forestadmin/datasource-toolkit
Version:
15 lines • 656 B
TypeScript
import { Collection } from '../../collection';
import { RecordData } from '../../record';
export default class Projection extends Array<string> {
get columns(): string[];
get relations(): Record<string, Projection>;
equals(other: Projection): boolean;
replace(handler: (path: string) => Projection | string | string[], bind?: unknown): Projection;
union(...otherProjections: (Projection | string[])[]): Projection;
apply(records: RecordData[]): RecordData[];
withPks(collection: Collection): Projection;
nest(prefix: string): Projection;
unnest(): Projection;
private reproject;
}
//# sourceMappingURL=index.d.ts.map