You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two TypedGraphQLError error instances that contain the same public fields should pass a equals() check. e.g.
firstError.equals(secondError) should return true when the message, locations, path, and extensions are equal. This makes it easier to compare semantically equal errors to each other during tests and runtime environments.
Actual behavior
Two TypedGraphQLError which contain the same fields return false when compared with equals()
Steps to reproduce
In Kotlin,
val firstError = TypedGraphQLError.newPermissionDeniedBuilder()
.message("org.springframework.security.access.AccessDeniedException: Access is denied")
.path(ResultPath.parse("/graphqlendpoint"))
.build()
val secondError = TypedGraphQLError.newPermissionDeniedBuilder()
.message("org.springframework.security.access.AccessDeniedException: Access is denied")
.path(ResultPath.parse("/graphqlendpoint"))
.build()
firstError.equals(secondError) // false
firstError.toString().equals(secondError.toString()) // true
The text was updated successfully, but these errors were encountered:
Please read our contributor guide before
creating an issue.
Expected behavior
Two
TypedGraphQLError
error instances that contain the same public fields should pass a equals() check. e.g.firstError.equals(secondError)
should return true when the message, locations, path, and extensions are equal. This makes it easier to compare semantically equal errors to each other during tests and runtime environments.Actual behavior
Two
TypedGraphQLError
which contain the same fields return false when compared withequals()
Steps to reproduce
In Kotlin,
The text was updated successfully, but these errors were encountered: