Skip to content

Commit 09eb3c0

Browse files
authored
Made ID helper for operation filter inputs public. (#6930)
1 parent 0d1fe3d commit 09eb3c0

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

src/HotChocolate/Core/src/Execution/RequestExecutor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public RequestExecutor(
5050
CollectEnricher(applicationServices, list);
5151
CollectEnricher(executorServices, list);
5252
_enricher = list.ToArray();
53+
return;
5354

5455
static void CollectEnricher(IServiceProvider services, List<IRequestContextEnricher> list)
5556
{

src/HotChocolate/Data/src/Data/Filters/Expressions/FilterExpressionBuilder.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,11 @@ public static Expression NotContains(
188188
private static Expression CreateAndConvertParameter<T>(object value)
189189
{
190190
Expression<Func<T>> lambda = () => (T)value;
191-
192191
return lambda.Body;
193192
}
194193

195194
private static Expression CreateParameter(object? value, Type type)
196195
=> (Expression)_createAndConvert
197196
.MakeGenericMethod(type)
198-
.Invoke(null,
199-
[value,])!;
197+
.Invoke(null, [value,])!;
200198
}

src/HotChocolate/Data/src/Data/Filters/Extensions/RelayIdFilterFieldExtensions.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,26 @@
77

88
namespace HotChocolate.Data.Filters;
99

10-
internal static class RelayIdFilterFieldExtensions
10+
/// <summary>
11+
/// Provides extension methods to the <see cref="IFilterOperationFieldDescriptor"/>
12+
/// </summary>
13+
public static class RelayIdFilterFieldExtensions
1114
{
1215
private static IdSerializer? _idSerializer;
13-
14-
internal static IFilterOperationFieldDescriptor ID(
16+
17+
/// <summary>
18+
/// Makes the operation field type an ID type.
19+
/// </summary>
20+
/// <param name="descriptor">
21+
/// The filter operation field descriptor.
22+
/// </param>
23+
/// <returns>
24+
/// Returns the filter operation field descriptor for configuration chaining.
25+
/// </returns>
26+
/// <exception cref="ArgumentNullException">
27+
/// <paramref name="descriptor"/> is <c>null</c>.
28+
/// </exception>
29+
public static IFilterOperationFieldDescriptor ID(
1530
this IFilterOperationFieldDescriptor descriptor)
1631
{
1732
if (descriptor is null)

0 commit comments

Comments
 (0)