Spaces:
Paused
Paused
| import { neo4jService } from '../services/Neo4jService'; | |
| async function inspectData() { | |
| console.log('π΅οΈ Inspecting Neo4j Data...'); | |
| try { | |
| // Check Node Counts | |
| const counts = await neo4jService.query(` | |
| MATCH (n) | |
| RETURN labels(n) as label, count(n) as count | |
| `); | |
| console.log('π Node Counts:', counts); | |
| // Inspect Tenders | |
| const tenders = await neo4jService.query(` | |
| MATCH (t:Tender) | |
| RETURN t.title, t.keywords, keys(t) as properties | |
| LIMIT 5 | |
| `); | |
| console.log('π Tender Samples:', JSON.stringify(tenders, null, 2)); | |
| } catch (error) { | |
| console.error('β Error:', error); | |
| } finally { | |
| await neo4jService.disconnect(); | |
| } | |
| } | |
| inspectData(); | |