Skip to content

Commit 1f78404

Browse files
authored
Remove @ symbols from the default name in order to support F# Object Expressions (graphql-dotnet#3474)
1 parent ac4f9c9 commit 1f78404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GraphQL/Types/GraphType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ private string GetDefaultName()
5151
}
5252
}
5353

54-
name = name.Replace('`', '_');
54+
name = name.Replace('`', '_')
55+
.Replace('@', '_'); // https://github.com/graphql-dotnet/graphql-dotnet/issues/3472
5556
if (name.EndsWith(nameof(GraphType), StringComparison.InvariantCulture))
5657
name = name.Substring(0, name.Length - nameof(GraphType).Length);
5758

0 commit comments

Comments
 (0)