Build fields and fields_exclude for queries.
Given the desired fields to be returned, intelligently add an exclusion for the data array if warranted and handle the "all" keyword. And do so without setting both fields and fields_exclude due to fact that the API will return wrong results if are passed. This is still posssible if the user deliberately sets both. Not exported.
character vector of fields user wants returned
type of records to get fields for
list list with fields key for df fields and query key for parameters to be merged with the query sent
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.