metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunitha Karthikeyan <sunitha.karthike...@gmail.com>
Subject Apache MetaModel - EnsureIndex
Date Mon, 16 Sep 2013 19:08:40 GMT
Hi ,

I am planning to use ApacheMetamodel for Querying MongoDB.

I am able to perform the CRUD operation via createMongoDbDataContext.

Native SQL Query can be executed via  dataContext.parseQuery.

I am struck in setting unique index on a table {collection}

Would like to know if we can run this query through an api call

db.people.ensureIndex( { "id": 1 } )

Regards,
Sunitha

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message