the query object can be undefined