cancel
Showing results for 
Search instead for 
Did you mean: 

convert bolt neo4j api response from records into columns + data format

drguwei
Node

how can i get this response using neo4j bolt? is there a way to convert records into columns + data?

 

drguwei_1-1663660953760.png

thanks!

4 REPLIES 4

The Bolt server does not return JSON results, contrary to the HTTP server.

If you want to achieve something similar, you will have to extract the results with the Bolt driver of your language and implement some logic yourself to expose the results in the format you describe.

to expose the result, it needs to be converted into an array right? btw this is the response i currently have:

drguwei_1-1663666393492.png

 

Hmmm, I'm a bit confused, what you're showing is NOT a response from a Bolt server. Can you clarify what you mean by "bolt neo4j api"? Can you share the code that interacts with the server?

i used neo4j-driver and the URI scheme is bolt for the API connection. something like this:

drguwei_0-1663667644582.png

to get the response: 

session
    .run(statement)
    .then((result) => {
      return result;
    })

my reference: https://www.npmjs.com/package/neo4j-driver