add api for fetching subset of document fields