This is a migrated thread and some comments may be shown as answers.

Everlive get(query) only returns 50 rows?

1 Answer 14 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nick
Top achievements
Rank 1
Nick asked on 10 Apr 2017, 04:49 PM

Hi there.

I am using Everlive backend services to run queries to my database and retrieve items from my table. I can successfully run the query and receive a result, however my result seems to be limited to 50 items and my table holds more than 50 items? Here is the piece of code I am using to retrieve results from my table: 

 

var expandExp = {
  "CreatedBy" : {
    "ReturnAs" : "SchoolId",
"SingleField" : "SchoolId",

    }
};

var query = new Everlive.Query();
query.expand(expandExp);

var data = everlive.data('Check_In');
data.get(query)
    .then(function(data){


console.log(data.result.length);
        
    },
    function(error){
        console.log(JSON.stringify(error));
    });

 

"50" is returned to my console but my table has 58 records?

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 11 Apr 2017, 11:03 AM
@Nick

Due to the usage of an expand query the limits for fetching expanded data (as explained here) are imposed. 

You may consider using a paging setting or do not expand the data (eventually expand it when viewing the item details). 

Let me know if this helps. 


Regards,
Anton Dobrev
Telerik by Progress
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
General Discussion
Asked by
Nick
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or