| 48 | const query = request.params.arguments.query; |
| 49 | const columns = (prefix: string) => ['id', 'label', 'name', 'qn', 'file', 'start_line', 'end_line'].map(key => prefix + key); |
| 50 | const values = (entry: GraphNode) => [entry.id, entry.label, entry.name, entry.qualified_name ?? '', entry.file_path ?? '', entry.start_line ?? '', entry.end_line ?? ''].map(String); |
| 51 | const names = [...query.matchAll(/qualified_name = "([^"]+)"/g)].map(match => match[1]); |
| 52 | let cols: string[], rows: string[][]; |
| 53 | if (query.startsWith('MATCH (n)')) { |