Return results in graph format using APOC

Is this possible doing this in the RETURN statement ? and not to a file ?

Which results? You've given us almost no context over what you're trying to visualize.

The graph result view you see in the browser is a result of client-side javascript libraries implementing the visualization. You need a visualizer to interpret data. It would not make sense to generate an image file visualization from the server itself for several reasons, one of which is that the layout would be entirely arbitrary. Visualizers are good because you can modify locations of elements and colors and filter and expand dynamically and change what labels are applied to which parts of the graph. If you wanted an image file as a result of an APOC call, you'd need to handle all of this with params, which doesn't sound easy or very useful.

1 Like