@Scott Klein
Thank you for the question and for using Q&A platform.
Have you checked to make sure that your connection string is correct? Also, have you verified that your query is returning data? You can try running the query in the Azure portal to see if it returns any results. Ensure your container has items in it. If the container is empty, HasMoreResults
could still be true
on the first iteration, but the result set would be empty.
You can also refer to the below links for more help regarding the code:
https://medium.com/@emer.kurbegovic/working-with-azure-cosmos-db-in-net-core-a-step-by-step-guide-c87411b610cb
https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-dotnet-query-items
Hope this helps. Please let us know if you have any further queries.