Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce resultTransformer.summary #1201

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

bigmontz
Copy link
Contributor

⚠️ 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.

@bigmontz bigmontz force-pushed the 5.22/feature/result-transformer-summary branch from a5063b5 to dc062ce Compare June 19, 2024 14:55
**⚠️ 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:

```javascript
// 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.**
@bigmontz bigmontz force-pushed the 5.22/feature/result-transformer-summary branch from dc062ce to 473ec52 Compare June 20, 2024 08:51
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
packages/core/test/result-transformers.test.ts Outdated Show resolved Hide resolved
Copy link
Member

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗜️

bigmontz and others added 2 commits June 25, 2024 15:16
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
@bigmontz bigmontz merged commit 50aa6aa into neo4j:5.0 Jun 25, 2024
37 checks passed
@bigmontz bigmontz deleted the 5.22/feature/result-transformer-summary branch June 25, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants