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.
1 parent 7d618e5 commit c984e2fCopy full SHA for c984e2f
Sources/ApolloCodegenLib/FileGenerators/DefaultMockValueProviding.swift
@@ -54,7 +54,7 @@ extension GraphQLEnumType: DefaultMockValueProviding {
54
55
extension GraphQLObjectType: DefaultMockValueProviding {
56
func defaultMockValue(config: ApolloCodegen.ConfigurationContext) -> String {
57
- return "Mock<\(name)>()"
+ return "Mock<\(self.render(as: .typename))>()"
58
}
59
60
0 commit comments