have getaAll, getById, getByNodeId working correctly from the angular controller