Hello everyone !
I’ve used a query :
q.Paginate(
q.Intersection(
q.Match(q.Index('exercisesByManualValidation'), true),
q.Join(
q.Join(
q.Match(
q.Index('lessonsByAuthor'),
q.Ref(q.Collection('users'), '255160402551243274'),
),
q.Index('skillsBlocksByLesson'),
),
q.Index('exercisesBySkillBlock'),
),
)
)
Which returns 10 results (without after/before, so end of list) :
{
data: [
Ref(Collection("exercises"), "264133659798274580"),
Ref(Collection("exercises"), "264135764300792339"),
Ref(Collection("exercises"), "264136902673695251"),
Ref(Collection("exercises"), "264142443312579091"),
Ref(Collection("exercises"), "264151464950104595"),
Ref(Collection("exercises"), "264240678558499346"),
Ref(Collection("exercises"), "271833694434492941"),
Ref(Collection("exercises"), "287769999151464972"),
Ref(Collection("exercises"), "287771006711366157"),
Ref(Collection("exercises"), "287771816320041480")
]
}
But I knew there was some results missing, so I used the Count
on the same query and I get 11 results. (The missing one). The only way to get it is to use the { size: 11, (or 999999 for more...) }
,
and now I get all 11 results.
{
data: [
Ref(Collection("exercises"), "264133659798274580"),
Ref(Collection("exercises"), "264135764300792339"),
Ref(Collection("exercises"), "264136902673695251"),
Ref(Collection("exercises"), "264142443312579091"),
Ref(Collection("exercises"), "264151464950104595"),
Ref(Collection("exercises"), "264240678558499346"),
Ref(Collection("exercises"), "271833694434492941"),
Ref(Collection("exercises"), "287769999151464972"),
Ref(Collection("exercises"), "287771006711366157"),
Ref(Collection("exercises"), "287771816320041480"),
Ref(Collection("exercises"), "293778802226496013")
]
}
Any idea about this issue ?