I’d just like to confirm this since I can’t find any mention of this behaviour in the documentation.
I tested this with this data:
{
"arr": [
{
"foo": 1,
"bar": 2
},
{
"foo": 3,
"bar": 4
}
]
}
and this index:
{
name: "test",
collection: Collection("test"),
values: [
{
field: ["data", "arr", "foo"]
},
{
field: ["data", "arr", "bar"]
}
]
}
and the index contains this:
Paginate(Match("test"))
{
data: [
[1, 2],
[1, 4],
[3, 2],
[3, 4]
]
}
I was hoping I could paginate through the array elements like this, but c’est la vie ¯\_(ツ)_/¯