diff --git a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Gateway/gateway.far b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Gateway/gateway.far index f2d32265456..9bfc1e90f3f 100644 Binary files a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Gateway/gateway.far and b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Gateway/gateway.far differ diff --git a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/ProductQueries.cs b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/ProductQueries.cs index 0977eb8e14a..d29063f4775 100644 --- a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/ProductQueries.cs +++ b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/ProductQueries.cs @@ -8,6 +8,6 @@ namespace eShop.Reviews; public static partial class ProductQueries { [Lookup, Internal] - public static Product GetProduct([ID] string upc) + public static Product? GetProduct([ID] string upc) => new() { Upc = upc }; } diff --git a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/schema.graphqls b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/schema.graphqls index 199a5f59681..0e2f03dfd28 100644 --- a/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/schema.graphqls +++ b/src/HotChocolate/Fusion/benchmarks/k6/eShop.Reviews/schema.graphqls @@ -8,7 +8,7 @@ type Product { } type Query { - product(upc: ID!): Product! @lookup @internal + product(upc: ID!): Product @lookup @internal review(id: ID!): Review @lookup user(id: ID!): User @lookup @internal } @@ -43,7 +43,7 @@ type User @internal { id: ID! name: String! } - + directive @internal on OBJECT | FIELD_DEFINITION """ directive @internal on OBJECT | FIELD_DEFINITION diff --git a/src/HotChocolate/Fusion/src/Fusion.Composition/SourceSchemaValidator.cs b/src/HotChocolate/Fusion/src/Fusion.Composition/SourceSchemaValidator.cs index 3689b046479..134dd81d7d3 100644 --- a/src/HotChocolate/Fusion/src/Fusion.Composition/SourceSchemaValidator.cs +++ b/src/HotChocolate/Fusion/src/Fusion.Composition/SourceSchemaValidator.cs @@ -2,7 +2,6 @@ using HotChocolate.Fusion.Errors; using HotChocolate.Fusion.Events; using HotChocolate.Fusion.Events.Contracts; -using HotChocolate.Fusion.Extensions; using HotChocolate.Fusion.Logging.Contracts; using HotChocolate.Fusion.Results; using HotChocolate.Types.Mutable; @@ -33,11 +32,6 @@ private void PublishEvents() foreach (var type in schema.Types) { - if (type is MutableObjectTypeDefinition { IsInternal: true }) - { - continue; - } - PublishEvent(new TypeEvent(type, schema), context); if (type is MutableComplexTypeDefinition complexType) @@ -46,11 +40,6 @@ private void PublishEvents() foreach (var field in complexType.Fields) { - if (field.IsInternal) - { - continue; - } - PublishEvent(new OutputFieldEvent(field, type, schema), context); foreach (var argument in field.Arguments)