How to get Collections name from Cosmos DB using Mongo API

Viewed 1014
  • I am trying to execute Mongo API to perform CRUD operation on Azure Cosmos-DB.
    • I am running the query on Azure Data explorer.
    • This is a query that I am executing {db.getCollectionNames()}

Here

  • I am facing {"code":500,"body":"{\"message\":\"There was an error processing your request. Please try again in a few moments.\",\"httpStatusCode\":\"InternalServerError\",\"xMsServerRequestId\":null,\"stackTrace\":null}"}

Can you please suggest the changes if I am doing something wrong here.

1 Answers
Related