And that would include the ref in the data you get back.
And a tip, you can’t update the structure of an index, so you will either have to delete the one you already made and then recreate it after a minute or so, or create an index with a new name.
thank you! that’s very helpful. I did try that, but what’s the syntax for writing a Map when each item in the array is an object (both the date and the ref)? Is it like JS syntax?
Of course startTime should be the same “type” as the stored value.
So use the format "2021-02-27T18:50:00Z" etc…
I believe this will help you
// Edit: I hope the date value returned in your Index is the startTime, else you will need to remake an Index I guess for easier filter & range functions.
The stored value is a timestamp, stored as a string in ISO format (see first post in thread) and yes that’s what the index is on.
But the stored value is just a string, does the Range query implicitly cast it as a timestamp to do the comparison? Or are we just getting away with comparing strings because that’s equivalent with ISO format?