We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@cost
1 parent 802fe27 commit 9ee7dd3Copy full SHA for 9ee7dd3
1 file changed
src/HotChocolate/Fusion/src/Fusion.Composition/Directives/CostDirective.cs
@@ -1,3 +1,4 @@
1
+using System.Globalization;
2
using HotChocolate.Language;
3
using HotChocolate.Types;
4
using static HotChocolate.Fusion.Properties.CompositionResources;
@@ -17,6 +18,6 @@ public static CostDirective From(IDirective directive)
17
18
throw new InvalidOperationException(CostDirective_WeightArgument_Invalid);
19
}
20
- return new CostDirective(double.Parse(name.Value));
21
+ return new CostDirective(double.Parse(name.Value, CultureInfo.InvariantCulture));
22
23
0 commit comments