Start a new topic

dataStore.find does'nt return anything


I was trying to fetch data from mycollection to store one field of each row in an array.
but each time I ran the App it doesn't return anything and when I made a breakpoint it appears that dataStore.find doesn't return anything. Here is my code 


function getHisTransmitters(){
		var arr=[]; // the array to store the field from the collection
		var dataStore = $kinvey.DataStore.collection('User1Bases', $kinvey.DataStoreType.Network); //my collection
		var stream = dataStore.find();
		stream.subscribe(function onNext(entity) {
		}, function onError(error) {
		}, function onComplete() {
  			return arr;
		return arr;


  can you help me please ?

Login or Signup to post a comment