in AmplifyPlugins/Core/AWSPluginsCoreTests/Query/QueryPredicateEvaluateGenerator.swift [408:428]
func attemptToResolve(_ type1: String, _ val1: String,
_ type2: String, _ val2: String,
_ operation: String) -> Bool {
if val2 == "" {
return false
}
if type1 == "Double" && type2 == "Int" ||
type1 == "Int" && type2 == "Double" ||
type1 == "Double" && type2 == "Double" ||
type1 == "Int" && type2 == "Int" {
return attemptToResolveNumeric(type1, val1, type2, val2, operation)
} else if type1.contains("Temporal") {
return attemptToResolveTemporal(type1, val1, type2, val2, operation)
} else if (type1 == "String" && type2 == "String") ||
(type1 == "Bool" && type2 == "Bool") {
return attemptToResolveStringBool(val1, val2, operation)
}
print("attemptToResolve: FAILED TO DETECT TYPES!")
return false
}