vadimtsushko/mongo_dart — pull request #56 by luizmineo (2014-10-23 17:10:43+00:00)
Title: Remove validation for index keys

Currently, when creating an index with `createIndex()` or `ensureIndex()`, mongo_dart doesn't accept key values different than 1 or -1. Although, MongoDB also accepts string values, such as "text" or "2dsphere". Considering the value is validated by MongoDB itself, I think it's safe to remove this validation from mongo_dart.