-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with a a very simple query "select * from c" #356
Comments
Hi @sdg002 - that should work. But I just noticed I don't have an integration test that validates this. So let me add that and see if I can replicate your issue. I'll work on this tonight. |
Hi @sdg002 , I've added the additional tests for this and can confirm querying is working correctly. However, I suspect your query needs some adjustment. Can you try: From memory, when you run queries in the Azure Portal, it does some adjustments to the query to reduce typing. |
Sorry, got closed when I merged the new tests. |
Hi @sdg002 - I think your The queries you are specifying do look like they should work just fine. One thing I've just considered: Is your collection partitioned? If so your query will be a cross partition query: In which case you need to include the If you run the command with the |
Setting this parameter worked. Thanks for the tip
|
Requesting this be added to documentation. This was super helpful! |
Will do @tamusjroyce |
Issue
Before submitting your issue for the CosmosDB project, please take a moment to
provide the following details:
Get-Module -Name CosmosDB
)Thanks for contributing your feedback and support! You can optionally submit a
Pull Request against this project, if you have a fix you'd like to share.
Thank you very much for this utility. This is going to be very useful.
What works
Get-CosmosDbDocument -Context $cosmosDbContext -CollectionId "v2participantprofiles"
Got all the records from the container.
What did not work
Command
Output
No query appears to work. e.g.
select * from c
The text was updated successfully, but these errors were encountered: