when running below query it's returning records from collection:
SELECT *
FROM Families f
WHERE f.id = "AndersenFamily"
I tried in C# also and got same results:
query = client.CreateDocumentQuery<Family>(collectionLink, new SqlQuerySpec
{
QueryText = "SELECT * FROM Families f WHERE (f.id = @name)",
Parameters = new SqlParameterCollection() {
new SqlParameter("@name", "AndersenFamily")
}
});
What's the significance of "Families"? ASFAIK it's not db name, collection name ,or any document name then why it's returning results?
I also tried to replace "Families" with some different word and I still got the results.
You can see the code here https://docs.microsoft.com/en-us/azure/documentdb/documentdb-sql-query