UNPKG

@neo4j-cypher/language-support

Version:
15 lines (12 loc) 340 B
import { DbSchema } from '../../dbSchema'; import { lintCypherQuery } from '../../syntaxValidation/syntaxValidation'; type SyntaxValidationTestArgs = { query: string; dbSchema?: DbSchema; }; export function getDiagnosticsForQuery({ query, dbSchema = {}, }: SyntaxValidationTestArgs) { return lintCypherQuery(query, dbSchema); }