Open sjwaight opened 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms.
Author: | sjwaight |
---|---|
Assignees: | - |
Labels: | `Cosmos`, `Service Attention` |
Milestone: | - |
route to service team
Assigning to MongoDb team @jasontho-ms
I have tried the same example on cli and it works with double-quotes. Here is a screenshot for reference.
The command will fail on a Linux command line, which includes the Azure Cloudshell Bash CLI.
This doc is being auto-generated. Reaching out to the respective team to find the process of auto generation.
We are still working on fixing this issue and will share an update once the fix is ready.
@sjwaight : I hope you are not blocked on this since you already mentioned the workaround. We will get the doc update for this as soon as we can. It's currently backlogged.
Not blocked, but will be great to see this updated to open up to more people!
The sample given for defining an index at the CLI is this document section:
Indexes, you can enter it as a string or as a file, e.g., --idx @indexes-file.json or --idx "[{"key": {"keys": ["_ts"]},"options": {"expireAfterSeconds": 1000}}, {"key": {"keys": ["user_id", "user_address"]}, "options": {"unique": "true"}}]".
doesn't parse at the CLI and the double quotes should be replaced with single quotes:
--idx '[{"key": {"keys": ["_ts"]},"options": {"expireAfterSeconds": 1000}}, {"key": {"keys": ["user_id", "user_address"]}, "options": {"unique": "true"}}]'.
There are also a few other doc pages that use the same example that require an update
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.