I am trying to retrieve the last added record from a Supabase table by using a collection. I know that I can retrieve all of the records and filter in WeWeb but I prefer to pull only the data that I need from the backend for performance and security reasons.
But I cannot see where in the collection creation process that I can do this.
I would suggest making a View in Supabase, that only holds the latest row.
Then your collection should just get the view.
then it will always (depending on your fetch interval) be updated to the latest row.