@liberation-data/drivine
Version:
Best and fastest graph database client for TypeScript / Node.js. Provides a level of abstraction for building highly scalable applications, without compromising architectural integrity
10 lines (9 loc) • 408 B
TypeScript
import { QuerySpecification } from '../query';
import { ResultMapper } from './ResultMapper';
export declare abstract class GraphResultMapper implements ResultMapper {
mapQueryResults<T>(records: any[], spec: QuerySpecification<T>): T[];
private mapToNative;
abstract keys(record: any): string[];
abstract itemAtIndex(record: any, index: number): any;
abstract toNative(val: any): any;
}