diff --git a/src/HotChocolate/Fusion/src/Fusion.Aspire/AspireCompositionHelper.cs b/src/HotChocolate/Fusion/src/Fusion.Aspire/AspireCompositionHelper.cs index 6b9b4a3c71f..f3e97de1ad3 100644 --- a/src/HotChocolate/Fusion/src/Fusion.Aspire/AspireCompositionHelper.cs +++ b/src/HotChocolate/Fusion/src/Fusion.Aspire/AspireCompositionHelper.cs @@ -23,7 +23,9 @@ public static async Task TryComposeAsync( var environment = settings.EnvironmentName ?? "Aspire"; var compositionSettings = new CompositionSettings { - Merger = { EnableGlobalObjectIdentification = settings.EnableGlobalObjectIdentification } + Merger = { EnableGlobalObjectIdentification = settings.EnableGlobalObjectIdentification }, + Satisfiability = { IncludeSatisfiabilityPaths = settings.IncludeSatisfiabilityPaths }, + Preprocessor = { ExcludeByTag = settings.ExcludeByTag?.ToHashSet() } }; var sourceSchemas = newSourceSchemas.ToDictionary( s => s.Name, diff --git a/src/HotChocolate/Fusion/src/Fusion.Aspire/GraphQLCompositionSettings.cs b/src/HotChocolate/Fusion/src/Fusion.Aspire/GraphQLCompositionSettings.cs index f930bec881b..e5e2062d448 100644 --- a/src/HotChocolate/Fusion/src/Fusion.Aspire/GraphQLCompositionSettings.cs +++ b/src/HotChocolate/Fusion/src/Fusion.Aspire/GraphQLCompositionSettings.cs @@ -10,6 +10,18 @@ public struct GraphQLCompositionSettings /// public bool? EnableGlobalObjectIdentification { get; set; } + /// + /// Gets or sets a value indicating whether satisfiability paths should be included in the + /// composed schema. + /// + public bool? IncludeSatisfiabilityPaths { get; set; } + + /// + /// Gets or sets the set of tags whose annotated schema elements shall be excluded from + /// composition. + /// + public ISet? ExcludeByTag { get; set; } + /// /// Gets or sets the environment name that shall be used for composition. ///