Start a new topic

DataStore Fetch relations with Query Support, Kinvey 1.1.8 upgrade

Hi, Ive been using Kinvey 1.1.8 (angularJS) and this piece of code has been working just fine:

var query = new $kinvey.Query();

query.equalTo('item_category', 'Books')

query.descending('_kmd.ect')

var promise = $kinvey.DataStore.find('allItems', query, {relations : {more_info : 'BooksDetails'}});

return promise;


But it no longer works from Kinvey 1.1.9 upwards... it now returns error: collection name undefined.


has anyone experienced this? any ideas where I can start troubleshooting?


Thanks for the feedback.


Hi Lawrence,


What call in the JavaScript library are you making to initiate the request?

This is my request.


var query = new $kinvey.Query();

query.equalTo('item_category', 'Books')

query.descending('_kmd.ect')

var promise = $kinvey.DataStore.find('MixedContent', query, {relations : {more_info : 'BooksDetails'}});

return promise;


the data does return because the debug log provides the following details:

the "data" object has the data. data.result --> is an array of length 78


I may also add that this problem persists whether I request data with relations or not.


["The network request completed.", Object]

  1. 0"The network request completed."
  2. 1Object
    1. configObject
    2. dataObject
      1. headersObject
      2. resultArray[78]
      3. __proto__Object
    3. headersfunction (c){a||(a=Xc(b));return c?(c=a[Q(c)],void 0===c&&(c=null),c):a}
    4. status200
    5. statusText"OK"

Hello Lawrence,


This issue should be resolved with our latest library release.


Thanks,

Login or Signup to post a comment