I'm trying to query for a custom object.
In the query editor in the Developer console, this query returns 1 row.
SELECT Id, Name FROM Household_Served__c LIMIT 1000
But then when I code it in Apex, the list is empty.
List<Household_Served__c> h = [SELECT Id, Name FROM Household_Served__c LIMIT 1000]; System.debug(h.size());
Why is the editor returning a row, but in Apex it is not returning anything?