@kpritam/gremlin-mcp
Version:
A Gremlin MCP server that allows for fetching status, schema, and querying using Gremlin for any Gremlin-compatible graph database (TypeScript implementation).
24 lines • 909 B
TypeScript
/**
* Gremlin result parsing utilities.
*
* This module provides idiomatic parsing of Gremlin query results into
* type-safe, serializable objects using Zod schemas.
*/
import { type GremlinResultItem } from '../gremlin/models.js';
import { type ResultMetadata } from './result-metadata.js';
/**
* Parses a single raw Gremlin result item into a typed, serializable object.
*/
export declare function parseGremlinResultItem(rawResult: unknown): GremlinResultItem;
/**
* Parses an array of raw Gremlin results into typed objects.
*/
export declare function parseGremlinResults(rawResults: unknown[]): GremlinResultItem[];
/**
* Enhanced result parser that provides detailed type information and metadata.
*/
export declare function parseGremlinResultsWithMetadata(rawResults: unknown[]): {
results: GremlinResultItem[];
metadata: ResultMetadata;
};
//# sourceMappingURL=result-parser.d.ts.map