如何在kinvey-flex-sdk中使用$elemMatch?

How to use $elemMatch in kinvey-flex-sdk?

有什么办法,如何在kinvey-flex-sdk中使用$elemMatch Projection Operators

你可以这样试试

var dataStore = modules.dataStore({ skipBl: true, useMasterSecret: true });
var collection = dataStore.collection('<collectionName>');
var query = new Kinvey.Query();
query.equalTo('items', { $elemMatch: { item: 'a', qty: { $gte: 23 } } });

collection.find(query, function (error, result) {

});