Skip to content

Commit 88d92d5

Browse files
AnthonyMDevgh-action-runner
authored andcommitted
3599 mock custom scalar (apollographql/apollo-ios-dev#838)
1 parent 6bbae6b commit 88d92d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ApolloCodegenLib/FileGenerators/DefaultMockValueProviding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension GraphQLScalarType: DefaultMockValueProviding {
3838
case "Boolean":
3939
return "false"
4040
default:
41-
return "try! .init(_jsonValue: \"\")"
41+
return ".defaultMockValue"
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)