Skip to content

Add more C# examples to fusion docs#9641

Open
michaelstaib wants to merge 2 commits intomainfrom
mst/fusion-examples-040526
Open

Add more C# examples to fusion docs#9641
michaelstaib wants to merge 2 commits intomainfrom
mst/fusion-examples-040526

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 06:56
@github-actions github-actions Bot added the 📚 documentation This issue is about working on our documentation. label May 4, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional C# resolver examples to the Fusion v16 “Data Requirements” documentation to illustrate nested field paths, list aggregation paths, and list projection requirements.

Changes:

  • Added a C# resolver example for nested field path requirements (seller.address.countryCode).
  • Added a C# resolver example for list aggregation requirements (seller.addresses[countryCode]) plus a brief list projection snippet (dimensions[{ weight, height }]).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +266 to +271
For the list projection variant (`dimensions[{ weight, height }]`), the argument is a list of an input object type:

```csharp
public static int GetBulkEstimate(
[Parent] Product product,
[Require("dimensions[{ weight, height }]")] ProductDimensionInput[] dimensions)
Comment on lines +224 to +228
public static decimal GetTaxEstimate(
[Parent] Product product,
[Require("seller.address.countryCode")] string countryCode,
[Require] float price)
=> TaxCalculator.Estimate(countryCode, price);
Comment on lines +258 to +262
public static decimal GetTaxEstimate(
[Parent] Product product,
[Require("seller.addresses[countryCode]")] string[] countryCodes,
[Require] float price)
=> TaxCalculator.Estimate(countryCodes, price);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants