Hi!

Considering the dummy data definition below, I’m trying to find a PetOwner by a given Id and update their favorite pet’s sweater color using the FavoritePetId. How would I write a MongoDB query using C# sdk?

public class PetOwner { public string Id { get; set; } public string Name { get; set; } public string FavoritePetId { get; set; } public List<Pet> Pets { get; set; } } public class Pet { public string Id { get; set; } public string SweaterColor { get; set; } }