feat(qb_query): expose fields like db_query

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-12-18 16:35:14 +05:30
parent 81f7a247f0
commit c0ebc96597
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -117,6 +117,8 @@ class DatabaseQuery:
if not fields:
fields = [pluck or "name"]
self.fields = fields
# Handle virtual doctypes before any other processing
if is_virtual_doctype(self.doctype):
return self._handle_virtual_doctype(