Azure / azure-cosmosdb-js-server

The JavaScript SDK for server-side programming in Azure Cosmos DB
MIT License
179 stars 152 forks source link

Is it "QueryResponse.isAllowed" or "Query.isAccepted" ? #6

Closed mdufourneaud-m2ocity closed 7 years ago

mdufourneaud-m2ocity commented 7 years ago

There is a mismatch between the documentation of the "DocumentDB server side JavaScript SDK" that indicates QueryResponse.isAllowed (cf. https://azure.github.io/azure-documentdb-js-server/D__DocDbWrapperScript.js.html#line1788), and the object returns by a Collection.value() call that is implemented as QueryResponse.isAccepted.

emilylawton commented 7 years ago

Thanks for bringing this to our attention, @mdufourneaud-m2ocity. This is a mistake in the documentation of the wrapper script. We will update this, changing QueryResponse.isAllowed to QueryResponse.isAccepted.