aws/dynamo/query/builders/QueryBuilder.js
/**
		 * Changes the action target to an index of the table (instead of the
		 * table itself) and returns the current instance.
		 *
		 * @public
		 * @param {String} indexName - The {@link Index} to target.
		 * @returns {QueryBuilder}
		 */
Changes the action target to an index of the table (instead of the
table itself) and returns the current instance.

@public
@param {String} indexName - The  Index to target.
Changes the action target to an index of the table ( instead of the table itself ) and returns the current instance . @public @param { String } indexName - The Index to target .
withIndex(indexName) {
			assert.argumentIsRequired(indexName, 'indexName', String);
			this._query = new Query(this._query.table, getIndex(indexName, this._query.table), this._query.keyFilter, this._query.resultsFilter, this._query.parallelFilter, this._query.attributes, this._query.limit, this._query.orderingType, this._query.consistentRead, this._query.skipDeserialization, this._query.countOnly, this._query.description);
			return this;
		}
withIndex ( indexName ) { assert . argumentIsRequired ( indexName , 'indexName' , String ) ; this . _query = new Query ( this . _query . table , getIndex ( indexName , this . _query . table ) , this . _query . keyFilter , this . _query . resultsFilter , this . _query . parallelFilter , this . _query . attributes , this . _query . limit , this . _query . orderingType , this . _query . consistentRead , this . _query . skipDeserialization , this . _query . countOnly , this . _query . description ) ; return this ; }
Changes the action target to an index of the table (instead of the
 table itself) and returns the current instance.
Changes the action target to an index of the table ( instead of the table itself ) and returns the current instance .