-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding debugDescription to SelectionSets #412
Conversation
- Adding debugDescription through CustomDebugStringConvertible to SelectionSets
✅ Deploy Preview for apollo-ios-docc canceled.
|
✅ Deploy Preview for eclectic-pie-88a2ba canceled.
|
@@ -117,6 +117,10 @@ extension SelectionSet { | |||
@inlinable public static func ==(lhs: Self, rhs: Self) -> Bool { | |||
return lhs.__data == rhs.__data | |||
} | |||
|
|||
public var debugDescription: String { | |||
return "\(self.__data._data as AnyObject)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this satisfies what was requested in the issue. The other properties of a DataDict
probably don't need to be output, we can adjust later if needed.
fe326385 Adding debugDescription to SelectionSets (#412) git-subtree-dir: apollo-ios git-subtree-split: fe32638504379a4855d63141e62b30c10684c218
git-subtree-dir: apollo-ios git-subtree-mainline: 0df6da0 git-subtree-split: fe32638504379a4855d63141e62b30c10684c218
debugDescription
throughCustomDebugStringConvertible
toSelectionSet
Closes apollographql/apollo-ios#3374