File tree Expand file tree Collapse file tree 4 files changed +3
-27
lines changed
ParseSwift.playground/Pages/6 - Installation.xcplaygroundpage Expand file tree Collapse file tree 4 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -71,30 +71,7 @@ DispatchQueue.main.async {
71
71
case . success( let updatedInstallation) :
72
72
print ( " Successfully save myCustomInstallationKey to ParseServer: \( updatedInstallation) " )
73
73
case . failure( let error) :
74
- assertionFailure ( " Failed to update installation: \( error) " )
75
- }
76
- }
77
-
78
- //: Looking at the output of user from the previous login, it only has
79
- //: a pointer to the `score`and `targetScore` fields. You can fetch using `include` to
80
- //: get the score.
81
- Installation . current? . fetch ( includeKeys: [ " score " ] ) { result in
82
- switch result {
83
- case . success( let fetched) :
84
- print ( " Successfully fetched user with score key: \( fetched) " )
85
- case . failure( let error) :
86
- print ( " Error fetching score: \( error) " )
87
- }
88
- }
89
-
90
- //: The `target` score is still missing. You can get all pointer fields at
91
- //: once by including `["*"]`.
92
- Installation . current? . fetch ( includeKeys: [ " * " ] ) { result in
93
- switch result {
94
- case . success( let fetched) :
95
- print ( " Successfully fetched user with all keys: \( fetched) " )
96
- case . failure( let error) :
97
- print ( " Error fetching score: \( error) " )
74
+ print ( " Failed to update installation: \( error) " )
98
75
}
99
76
}
100
77
}
Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ internal extension API {
240
240
}
241
241
}
242
242
urlRequest. httpMethod = method. rawValue
243
- print ( urlRequest)
244
243
return . success( urlRequest)
245
244
}
246
245
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ public extension Sequence where Element: ParseObject {
444
444
// MARK: CustomDebugStringConvertible
445
445
extension ParseObject {
446
446
public var debugDescription : String {
447
- guard let descriptionData = try ? ParseCoding . parseEncoder ( ) . encode ( self , skipKeys : . none ) ,
447
+ guard let descriptionData = try ? ParseCoding . jsonEncoder ( ) . encode ( self ) ,
448
448
let descriptionString = String ( data: descriptionData, encoding: . utf8) else {
449
449
return " \( className) () "
450
450
}
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ extension ParseCloud {
117
117
// MARK: CustomDebugStringConvertible
118
118
extension ParseCloud {
119
119
public var debugDescription : String {
120
- guard let descriptionData = try ? ParseCoding . parseEncoder ( ) . encode ( self , skipKeys : . none ) ,
120
+ guard let descriptionData = try ? ParseCoding . jsonEncoder ( ) . encode ( self ) ,
121
121
let descriptionString = String ( data: descriptionData, encoding: . utf8) else {
122
122
return " \( functionJobName) "
123
123
}
You can’t perform that action at this time.
0 commit comments