File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
src/HotChocolate/Core/src/Types/Types/Scalars Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,26 @@ protected override void OnCompleteType(
7171 ScalarTypeDefinition definition )
7272 {
7373 _converter = context . DescriptorContext . TypeConverter ;
74- var directiveDefinitions = definition . GetDirectives ( ) ;
75- Directives = DirectiveCollection . CreateAndComplete ( context , this , directiveDefinitions ) ;
7674
7775 if ( definition . SpecifiedBy is not null )
7876 {
7977 SpecifiedBy = definition . SpecifiedBy ;
8078 }
8179 }
80+
81+ protected sealed override void OnBeforeCompleteMetadata (
82+ ITypeCompletionContext context ,
83+ DefinitionBase configuration )
84+ {
85+ OnBeforeCompleteMetadata ( context , ( ScalarTypeDefinition ) configuration ) ;
86+ base . OnBeforeCompleteMetadata ( context , configuration ) ;
87+ }
88+
89+ protected virtual void OnBeforeCompleteMetadata (
90+ ITypeCompletionContext context ,
91+ ScalarTypeDefinition configuration )
92+ {
93+ var directiveDefinitions = configuration . GetDirectives ( ) ;
94+ Directives = DirectiveCollection . CreateAndComplete ( context , this , directiveDefinitions ) ;
95+ }
8296}
You can’t perform that action at this time.
0 commit comments