cosmosQuery: POST a full query to the REST API for Cosmos DB.

Description Usage Arguments Value Examples

View source: R/cosmosQuery.R

Description

POST a full query to the REST API for Cosmos DB.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
cosmosQuery(
  sql.what = "*",
  sql.where = "",
  sql.params = list(),
  max.items = 100,
  max.pages = 10,
  debug.auth = FALSE,
  debug.header = FALSE,
  debug.query = FALSE,
  content.response = FALSE,
  max.retry = 5,
  flatten = FALSE
)

Arguments

sql.what

String for specifying what fields to retrieve. Typically called select condition. Defaults to *

sql.where

String for specifying what filter to use on data. Typically called search condition. Defaults to empty.

debug.auth

Logical value for getting verbose output of auth header being constructed. Defaults to false.

debug.header

Logical value for getting verbose output of response headers. Defaults to false.

debug.query

Logical value for getting verbose output of HTTP response, printing all headers. Defaults to false.

content.response

Logical value to determine whether to retrieve full response or just the documents

max.retry

Numeric number of retries on a 429 error

Value

Prints status code of HTTP POST, and returns full HTTP response or just the content

Examples

1
cosmosQuery(sql.what = "c.contact.eloquaId", sql.where = "c.contact.eloquaId != null")

aaron2012r2/cosmosR documentation built on Nov. 11, 2020, 2:32 a.m.