@@ -1081,6 +1081,8 @@ class ParseObject {
1081
1081
* You can either call it as:<pre>
1082
1082
* object.save();</pre>
1083
1083
* or<pre>
1084
+ * object.save(attrs);</pre>
1085
+ * or<pre>
1084
1086
* object.save(null, options);</pre>
1085
1087
* or<pre>
1086
1088
* object.save(attrs, options);</pre>
@@ -1097,13 +1099,36 @@ class ParseObject {
1097
1099
* // The save failed. Error is an instance of Parse.Error.
1098
1100
* });</pre>
1099
1101
*
1100
- * @param {Object } options
1102
+ * @param {String| Object|null } [attrs]
1101
1103
* Valid options are:<ul>
1102
- * <li>useMasterKey: In Cloud Code and Node only, causes the Master Key to
1104
+ * <li>`Object` - Key/value pairs to update on the object.</li>
1105
+ * <li>`String` Key - Key of attribute to update (requires arg2 to also be string)</li>
1106
+ * <li>`null` - Passing null for arg1 allows you to save the object with options passed in arg2.</li>
1107
+ * </ul>
1108
+ *
1109
+ * @param {String|Object } [options]
1110
+ * <ul>
1111
+ * <li>`String` Value - If arg1 was passed as a key, arg2 is the value that should be set on that key.</li>
1112
+ * <li>`Object` Options - Valid options are:
1113
+ * <ul>
1114
+ * <li>useMasterKey: In Cloud Code and Node only, causes the Master Key to
1103
1115
* be used for this request.
1116
+ * <li>sessionToken: A valid session token, used for making a request on
1117
+ * behalf of a specific user.
1118
+ * </ul>
1119
+ * </li>
1120
+ * </ul>
1121
+ *
1122
+ * @param {Object } [options]
1123
+ * Used to pass option parameters to method if arg1 and arg2 were both passed as strings.
1124
+ * Valid options are:
1125
+ * <ul>
1126
+ * <li>useMasterKey: In Cloud Code and Node only, causes the Master Key to
1127
+ * be used for this request.
1104
1128
* <li>sessionToken: A valid session token, used for making a request on
1105
1129
* behalf of a specific user.
1106
1130
* </ul>
1131
+ *
1107
1132
* @return {Promise } A promise that is fulfilled when the save
1108
1133
* completes.
1109
1134
*/
0 commit comments