Skip to contents

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.

Usage

build_field_lists(fields, type)

Arguments

fields

character vector of fields user wants returned

type

type of records to get fields for

Value

list list with fields key for df fields and query key for parameters to be merged with the query sent