internal SortField(SortFieldDefinition definition, int index) : base(definition, index) { Member = definition.Member; Handler = definition.Handler ?? throw ThrowHelper.SortField_ArgumentInvalid_NoHandlerWasFound(); }
public static SchemaException SortInterceptor_NoFieldHandlerFoundForField( SortInputTypeDefinition type, SortFieldDefinition field) => new SchemaException( SchemaErrorBuilder.New() .SetMessage( DataResources.SortInterceptor_NoFieldHandlerFoundForField, field.Name, type.Name) .Build());
public override bool CanHandle( ITypeDiscoveryContext context, SortInputTypeDefinition typeDefinition, SortFieldDefinition fieldDefinition) => fieldDefinition.Member is not null;