as an altenative use graphs from query to build the cache id