Skip to content

Commit

Permalink
Fixed name of LocalCurrency scalar type (#5368)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccallum committed Sep 5, 2022
1 parent 59eccd9 commit 5f0e65f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -17,7 +17,7 @@ public class LocalCurrencyType : ScalarType<decimal, StringValueNode>
/// </summary>
public LocalCurrencyType()
: this(
WellKnownScalarTypes.LocalCurency,
WellKnownScalarTypes.LocalCurrency,
description: ScalarResources.LocalCurrencyType_Description)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/HotChocolate/Core/src/Types.Scalars/ThrowHelper.cs
Expand Up @@ -206,7 +206,7 @@ public static SerializationException LocalCurrencyType_ParseValue_IsInvalid(ITyp
ErrorBuilder.New()
.SetMessage(ScalarResources.LocalCurrencyType_IsInvalid_ParseValue)
.SetCode(ErrorCodes.Scalars.InvalidRuntimeType)
.SetExtension("actualType", WellKnownScalarTypes.LocalCurency)
.SetExtension("actualType", WellKnownScalarTypes.LocalCurrency)
.Build(),
type);
}
Expand All @@ -217,7 +217,7 @@ public static SerializationException LocalCurrencyType_ParseLiteral_IsInvalid(IT
ErrorBuilder.New()
.SetMessage(ScalarResources.LocalDateType_IsInvalid_ParseLiteral)
.SetCode(ErrorCodes.Scalars.InvalidSyntaxFormat)
.SetExtension("actualType", WellKnownScalarTypes.LocalCurency)
.SetExtension("actualType", WellKnownScalarTypes.LocalCurrency)
.Build(),
type);
}
Expand Down
Expand Up @@ -11,7 +11,7 @@ internal static class WellKnownScalarTypes
public const string Isbn = nameof(Isbn);
public const string Latitude = nameof(Latitude);
public const string LocalDate = nameof(LocalDate);
public const string LocalCurency = nameof(LocalCurency);
public const string LocalCurrency = nameof(LocalCurrency);
public const string LocalTime = nameof(LocalTime);
public const string Longitude = nameof(Longitude);
public const string MacAddress = nameof(MacAddress);
Expand Down
Expand Up @@ -3,7 +3,7 @@
}

type Query {
scalar: LocalCurency
scalar: LocalCurrency
}

"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`."
Expand All @@ -13,4 +13,4 @@ directive @defer("If this argument label has a value other than null, it will be
directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! = 0 "Streamed when true." if: Boolean) on FIELD

"The LocalCurrency scalar type is a currency string."
scalar LocalCurency
scalar LocalCurrency

0 comments on commit 5f0e65f

Please sign in to comment.