pub fn graph_to_json(subgraph: &GraphSubgraph) -> Result<Value, GraphDbError>
Convert a GraphSubgraph into JSON.
GraphSubgraph