Azure cosmosdb cosmos数据库中不支持as查询

Azure cosmosdb cosmos数据库中不支持as查询,azure-cosmosdb,Azure Cosmosdb,我试图下面的代码,以获得详细信息,但它并没有返回我想要的 我的问题是: var查询=$选择catalog.id作为vendorguid,catalog.VendorName,industry.id作为industryguid,industry.IdustryName,category.id作为categoryguid,category.Name作为categoryname,category.Description作为categorydescription,Subcategory.id作为sub

我试图下面的代码,以获得详细信息,但它并没有返回我想要的

我的问题是:


var查询=$选择catalog.id作为vendorguid,catalog.VendorName,industry.id作为industryguid,industry.IdustryName,category.id作为categoryguid,category.Name作为categoryname,category.Description作为categorydescription,Subcategory.id作为subcategoryguid,Subcategory.Name作为subcategoryname,Subcategory.Description作为subcategorydescription,product.Id作为productguid,product.Name作为productname,product.CurrentQuantity作为productCurrentQuantity,product.Tag作为productTag,product.ImageUrl作为productImageUrl,product.Unit作为productUnit,product.Price作为productPrice,product.hasMethodOfPreparation作为producthasMethodOfPreparation,product.MethodOfPreparation作为productMethodOfPreparation,product.Addons作为productAddons从catalog中加入industry在catalog中加入industry。catalog在catalog中加入catalog。catalog在catalog中加入Subcategory。Subcategory在Subcategory中加入product。product where product.Id=“+productId+”;
我认为问题在于你的加入(类别,子类别)。您确定它总是找到匹配项吗?如果它没有找到匹配项或没有该属性,CosmosDb将不会将其包含在结果集中


它不像MSSQL的左连接包含空值。CosmosDb更像是一个完整的外部连接(交叉连接)。

我认为问题在于连接(类别,子类别)。您确定它总是找到匹配项吗?如果它没有找到匹配项或没有该属性,CosmosDb将不会将其包含在结果集中


它不像MSSQL的左连接,其中包含空值。CosmosDb更像是一个完整的外部连接(交叉连接).

您可以使用Data Explorer在Azure portal上运行查询吗?是的。它正在返回Data Explorer中的值。我现在更正它。请帮助我执行上述操作。您可以使用Data Explorer在Azure portal上运行查询吗?是的。它正在返回Data Explorer中的值。我现在更正它。请帮助我执行上述操作