Skip to content

Commit 0965336

Browse files
committed
Fix mapping typo for LocalTime and remove commented ID mapping
Corrected the type name for LocalTime mapping in Helpers.cs from "LocalTime" to "TimeOnly" and cleaned up commented-out ID mapping entry.
1 parent e859f87 commit 0965336

File tree

1 file changed

+1
-2
lines changed
  • src/Linq2GraphQL.Generator/GraphQLSchema

1 file changed

+1
-2
lines changed

src/Linq2GraphQL.Generator/GraphQLSchema/Helpers.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ internal static string SafeVariableName(string name)
110110
{ "Int", new ValueTuple<string, Type>("int", typeof(int)) },
111111
{ "Float", new ValueTuple<string, Type>("double", typeof(double)) },
112112
{ "String", new ValueTuple<string, Type>("string", typeof(string)) },
113-
// { "ID", new ValueTuple<string, Type>("string", typeof(string)) },
114113
{ "Date", new ValueTuple<string, Type>("DateTime", typeof(DateTime)) },
115114
{ "LocalDate", new ValueTuple<string, Type>("DateOnly", typeof(DateOnly)) },
116115
{ "Boolean", new ValueTuple<string, Type>("bool", typeof(bool)) },
@@ -119,7 +118,7 @@ internal static string SafeVariableName(string name)
119118
{ "timestamptz", new ValueTuple<string, Type>("DateTimeOffset", typeof(DateTimeOffset)) },
120119
{ "Uri", new ValueTuple<string, Type>("Uri", typeof(Uri)) },
121120
{ "DateTime", new ValueTuple<string, Type>("DateTimeOffset", typeof(DateTimeOffset)) },
122-
{ "LocalTime", new ValueTuple<string, Type>("LocalTime", typeof(TimeOnly)) },
121+
{ "LocalTime", new ValueTuple<string, Type>("TimeOnly", typeof(TimeOnly)) },
123122
{ "Decimal", new ValueTuple<string, Type>("decimal", typeof(decimal)) },
124123
{ "TimeSpan", new ValueTuple<string, Type>("TimeSpan", typeof(TimeSpan)) },
125124
{ "Byte", new ValueTuple<string, Type>("byte", typeof(byte)) },

0 commit comments

Comments
 (0)