MicrosoftLearning / dp-420-cosmos-db-dev

DP-420: Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
https://microsoftlearning.github.io/dp-420-cosmos-db-dev/
MIT License
81 stars 95 forks source link

Product.cs does not contain a "tag" property #14

Closed weslbo closed 2 years ago

weslbo commented 2 years ago

Module: 05

Lab/Demo: 02 Paginate cross-product query results with the Azure Cosmos DB SQL API SDK

Step: 15

Description of issue

Repro steps:

Product.cs does not contain a "tag" property. However the sql command and the final c# code are referencing the tag property.

public class Product
{
    public string id { get; set; }
    public string categoryId { get; set; }
    public string categoryName { get; set; }
    public string sku { get; set; }
    public string name { get; set; }
    public string description { get; set; }
    public double price { get; set; }
}
SELECT p.name, t.name AS tag FROM products p JOIN t IN p.tags
weslbo commented 2 years ago

Step 15 is asking to write following statement: (which fails)

Console.WriteLine($"[{product.name,40}]\t{product.tag}");
MScalopez commented 2 years ago

Wes, thanks for bringing this up to us, I will review the issue and fixed it as soon as possible.

MScalopez commented 2 years ago

Issue has been fixed. Again, thank you for bringing this to our attention.