We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345a5e6 commit 37c0f18Copy full SHA for 37c0f18
src/ParseSchema.js
@@ -221,9 +221,13 @@ class ParseSchema {
221
/**
222
* Adding an Index to Create / Update a Schema
223
*
224
- * @param {String} name Name of the field that will be created on Parse
225
- * @param {String} type Can be a (String|Number|Boolean|Date|Parse.File|Parse.GeoPoint|Array|Object|Pointer|Parse.Relation)
+ * @param {String} name Name of the index
+ * @param {Object} index { field: value }
226
* @return {Parse.Schema} Returns the schema, so you can chain this call.
227
+ *
228
+ * <pre>
229
+ * schema.addIndex('index_name', { 'field': 1 });
230
+ * </pre>
231
*/
232
addIndex(name: string, index: any) {
233
if (!name) {
0 commit comments