Query from Object.class instead of Record.class. Prevents query from needing type information.