(#190) - implement attachments=true for query()