Skip to content

Commit

Permalink
Fix null value for id field on inner nodes in MongoDB HotChocolate ex…
Browse files Browse the repository at this point in the history
…ample

Related to ChilliCream#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).
  • Loading branch information
nirzaf committed Aug 8, 2024
1 parent cbb66a2 commit 2341c76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/MongoDB/12.1/Person/Address.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Demo;

public class Address
{
public Guid Id { get; init; }
public string Street { get; init; }

public string City { get; init; }
Expand Down

0 comments on commit 2341c76

Please sign in to comment.