Multi Table using include and getting more than 50 items

Hi Guys,

Following is my code working fine if the questions are less than 50.

I need help trying to get more than 50 question coming from include. “questionLink”

Please help

$w.onReady( function () {

let pat = wixLocation.path[wixLocation.path.length- 1 ];

wixData.query( "surveyQuestionaire" ) 

.include( "questionLink" ) 
.eq( "category" , pat) 
.find() 
.then( (results) => { 
    console.log(results) 

if (results.items.length > 0 ) {

var questions = results.items[ 0 ].questionLink;

var group1 = [];
var group2 = [];
var group3 = [];

for ( var i = 0 ; i < questions.length; i++)
{
if (questions[i].group === “Group1” )
{
group1.push(questions[i])
}
if (questions[i].group === “Group2” )
{
group2.push(questions[i])
}
if (questions[i].group === “Group3” )
{
group3.push(questions[i])
}
}

    }  **else**  {  
    } 
} ) 
. **catch** ( (err) => { 
	 **let**  errorMsg = err; 
} );

Hello zeeshan,

try this one…

.limit(1000)

for example, you are now able to have more than 50 items :wink: