Fixing the query to fetch the full graph of objects of a worker