neo4j-php / neo4j-php-client

Php client and driver for neo4j database
https://neo4j.com/developer/php/
MIT License
159 stars 40 forks source link

Neo4j json format #197

Open desenvolvedorindie opened 3 months ago

desenvolvedorindie commented 3 months ago

How to return json results in format like the neo4j (json code) response and like nodejs oficial library too (response.records). I need this format because I want to use neovis.js library


[
  {
    "keys": [
      "n",
      "r",
      "m",
      "a"
    ],
    "length": 4,
    "_fields": [
      {
        "identity": {
          "low": 0,
          "high": 0
        },
        "labels": [
          "Character"
        ],
        "properties": {
        ...
  }
]
desenvolvedorindie commented 3 months ago

image neo4j json format

desenvolvedorindie commented 3 months ago

@transistive there's any way to do it?

stefanak-michal commented 3 months ago

Hi. Honestly I'm not sure if you can achieve this structure with client. If you need raw structure you should use only low level bolt library. That gives you db response in unchanged format.

Maybe client has method which gives you response unformatted. I don't know.

Transistive is recently inactive, so maybe you will have to wait for answer longer.