neo4j / neo4j-javascript-driver

Neo4j Bolt driver for JavaScript
https://neo4j.com/docs/javascript-manual/current/
Apache License 2.0
839 stars 148 forks source link

Introduce `resultTransformer.summary` #1201

Closed bigmontz closed 1 week ago

bigmontz commented 2 weeks ago

⚠️ This API is released as preview. This function enables fetching only the summary of the Result. The result will be consumed and records won't be streamed.

Examples:

// using in the execute query
const summary = await driver.executeQuery('MATCH (p:Person{ age: $age }) RETURN p.name as name', { age: 25 }, {
    database: 'neo4j,
    resultTransformer: neo4j.resultTransformers.summary()
})

⚠️ This API is released as preview.