Added the ability to pass a callback function as the entityQuery, so the query can be modified after the datasource is instantiated.