Skip to content
Snippets Groups Projects
Commit 372f8a16 authored by Leonardo's avatar Leonardo Committed by Leonardo Christino
Browse files

chore(stats): refactor stats typing to match backend

parent 92f8fbf4
No related branches found
No related tags found
1 merge request!221chore(stats): refactor stats typing to match backend
Pipeline #138963 passed
......@@ -30,8 +30,14 @@ export const initialState: schemaSliceI = {
edges: {},
},
graphStats: {
nodeStats: {},
edgeStats: {},
nodes: {
count: 0,
stats: {},
},
edges: {
count: 0,
stats: {},
},
},
// layoutName: 'Cytoscape_fcose',
settings: {
......
......@@ -52,8 +52,14 @@ export type SchemaGraphInference = {
};
export type SchemaGraphStats = {
nodeStats: Record<string, NodeOrEdgeStats>; // node key -> Stats
edgeStats: Record<string, NodeOrEdgeStats>; // edge key -> Stats
nodes: {
count: number;
stats: Record<string, NodeOrEdgeStats>; // node key -> Stats
};
edges: {
count: number;
stats: Record<string, NodeOrEdgeStats>; // edge key -> Stats
};
};
export type NodeOrEdgeStats = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment