Add index to name prop

This commit is contained in:
Raymond Feng 2013-10-17 14:24:47 -07:00
parent 32dbe9cb21
commit bcf112f042
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ describe('basic-querying', function() {
db = getSchema(); db = getSchema();
User = db.define('User', { User = db.define('User', {
name: {type: String, sort: true}, name: {type: String, index: true, sort: true},
email: {type: String, index: true}, email: {type: String, index: true},
role: {type: String, index: true}, role: {type: String, index: true},
order: {type: Number, index: true, sort: true} order: {type: Number, index: true, sort: true}