-
I see there is an operation called I can't seem to find it. Is this something that is missing or just not implemented yet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ParseSwift only supports what the server supports. If you would like to see additional operations supported on the server, I recommend you open up related issues there. Supported operations on the server are here: https://github.com/parse-community/parse-server/blob/65e5879e42cefb4b462c9383af3705d027131242/src/Controllers/DatabaseController.js#L274-L309 and https://github.com/parse-community/parse-server/blob/65e5879e42cefb4b462c9383af3705d027131242/src/Controllers/SchemaController.js#L1600-L1620 Decrement can be easily achieved by incrementing by a negative number: let incrementOperation = savedScore.operation.increment("points", by: -1) |
Beta Was this translation helpful? Give feedback.
ParseSwift only supports what the server supports. If you would like to see additional operations supported on the server, I recommend you open up related issues there. Supported operations on the server are here: https://github.com/parse-community/parse-server/blob/65e5879e42cefb4b462c9383af3705d027131242/src/Controllers/DatabaseController.js#L274-L309 and https://github.com/parse-community/parse-server/blob/65e5879e42cefb4b462c9383af3705d027131242/src/Controllers/SchemaController.js#L1600-L1620
Decrement can be easily achieved by incrementing by a negative number: