2 Replies
yes, and that is the correct syntax. are you observing problems?
as an aside, the index is only being used for ordering here, not filtering. if you want to use it for both, you can define the index as
.index("by_attribute_lastActiveAt", ["attributes.attribute", "lastActiveAt"])
and apply the filter with .withIndex("by_attribute_lastActiveAt", q => q.eq("attributes.attribute", {attributeName}))
worded my question incorrectly, i meant to ask whether this will be supported in the future but i guess this does work!
regarding the ordering, the index was intended for the ordering, but good aside/reminder on the
[attributes.attribute]
. Thank you that was helpful!