build_field_lists: Build fields and fields_exclude for queries.

View source: R/idig_search.R

build_field_listsR Documentation

Build fields and fields_exclude for queries.

Description

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


ridigbio documentation built on Oct. 1, 2024, 9:06 a.m.