Prepare the request to get data from MongoDB from chosen arguments and a vector containing different ones.

prepare_request(request_vector, args, type = NULL)

Arguments

request_vector

Vector of prepared arguments from selected choices.

args

Vector of selected arguments to use in the request.

type

Type of table to query. Can be h5p, learnr or shiny.

Value

A string request with the chosen arguments.

Examples

rv <- c("color" = "red", "type" = "flower")
prepare_request(rv, "color")
#> {red}