Basic query for single and list of dynamic objects working