added get all method and get by into graph repository