This one is more for vanity as I am well aware of the plan to suspend service by May 30.
Before support ends, is it possible in FQL v10 do dynamically reference one of a set of Collection indexes based on an input variable.
My efforts to work out how to call an index dynamically within a UDF have failed when attempting to follow the format called out in this dynamic collection referencing example:
Using the included reference, I am attempting something like:
function getPriceLowtoHigh(index) {
// Uses `Index()` to dynamically specify
// the index name.
Products.Index(index) {
price,
name,
description
}
}
I write the above knowing that Index() is not a valid FQL in-built function though want to find something similar.
I understand that it may not be as simple to just reference an index rather than a collection though appreciate if someone could tell me it is not possible so I can rest easy.