Skip to content
Snippets Groups Projects

refactor: statistics on result set

Merged Sjoerd requested to merge feat/statistics into main
1 file
+ 0
2
Compare changes
  • Side-by-side
  • Inline
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import type { RootState } from './store';
import { getDimension, extractStatistics, GraphMetadata } from '../statistics';
import { getGraphStatistics } from '../../statistics';
export interface GraphQueryResultFromBackendPayload {
queryID: string;
@@ -127,6 +128,7 @@ export const graphQueryBackend2graphQuery = (payload: GraphQueryResultFromBacken
_edge.label = edgeType;
return _edge;
});
return { metaData: extractStatistics(metaData), nodes, edges };
};
Loading