/**
 * Query key factories for canvas queries
 */

export const canvasKeys = {
	all: ['canvas'] as const,
	graphs: () => [...canvasKeys.all, 'graphs'] as const,
	graph: (graphId: string) => [...canvasKeys.graphs(), graphId] as const,
	nodes: (graphId: string) => [...canvasKeys.graph(graphId), 'nodes'] as const,
	node: (graphId: string, nodeId: string) => [...canvasKeys.nodes(graphId), nodeId] as const,
	edges: (graphId: string) => [...canvasKeys.graph(graphId), 'edges'] as const,
	edge: (graphId: string, edgeId: string) => [...canvasKeys.edges(graphId), edgeId] as const,
};
