From 2341c7648b629a026d8316589d6e4cbc5f1c15f4 Mon Sep 17 00:00:00 2001 From: "M.F.M Fazrin" Date: Thu, 8 Aug 2024 23:44:04 +0300 Subject: [PATCH] Fix null value for id field on inner nodes in MongoDB HotChocolate example Related to #61 Add an `Id` field to the `Address` class in `misc/MongoDB/12.1/Person/Address.cs`. * Add a new `Id` field of type `Guid` to the `Address` class. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ChilliCream/hotchocolate-examples/issues/61?shareId=XXXX-XXXX-XXXX-XXXX). --- misc/MongoDB/12.1/Person/Address.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/MongoDB/12.1/Person/Address.cs b/misc/MongoDB/12.1/Person/Address.cs index 230e59c..cef211e 100644 --- a/misc/MongoDB/12.1/Person/Address.cs +++ b/misc/MongoDB/12.1/Person/Address.cs @@ -2,6 +2,7 @@ namespace Demo; public class Address { + public Guid Id { get; init; } public string Street { get; init; } public string City { get; init; }