Skip to content

Feature Request for a toJSON method #189

Closed
@ariesshrimp

Description

@ariesshrimp

So far I find this pattern pretty frustrating:

// I know I'm getting just one result
session.run(query, params).then(({ records }) => records[0].get(some_key).properties)

// I know I'm getting a list of results
session.run(query, params).then(({ records }) => records.map(r => r.get(some_key).properties)

I'm sure there are lots of use cases for all of that other machinery on the response, but a quick "just give me some json that looks like my data" method would be sublimely convenient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions