Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/HotChocolate/Fusion/benchmarks/k6/eShop.Gateway/gateway.far
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -43,7 +43,7 @@ type User @internal {
id: ID!
name: String!
}

directive @internal on OBJECT | FIELD_DEFINITION
"""
directive @internal on OBJECT | FIELD_DEFINITION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Loading