Can anyone tell me which node module I have to require to parameterize queries for DocumentDB in Node.js?
I have structured the query very similar to this Microsoft example. I am using the documentdb module, but SqlQuerySpec and SqlParametersCollection are not recognised.
IQueryable<Book> queryable = client.CreateDocumentQuery<Book>(
collectionSelfLink,
new SqlQuerySpec
{
QueryText = "SELECT * FROM books b WHERE (b.Author.Name = @name)",
Parameters = new SqlParameterCollection()
{
new SqlParameter("@name", "Herman Melville")
}
});