I’m trying to implement filtering on a smart collection I have created. I currently enabled the filtering on every fields in that collection, and I can now add filters. However, the filters are not applied directly.
I suppose I have to manually implement the filtering in my get request.
In that very get request, when I console.log(req.query);, I get the following:
Thanks for interest in Forest.
Can you please share your project name? And also the smart collection name.
Is the smart-collection working (except for filtering) ?
Also, did you notice than smart collections are mainly for externals data sources (not your database)? If data comes from your database, native collections are prefered.
My project name is Lords and the smart collection name is “Bookings Recap”.
My smart collection is working correctly, getting the correct data and all. But I can’t get the filtering to work.
I did notice that smart collection were mainly used for external data. However, I wanted to use this collection as a mix of several models, used as a reporting table. How can I create such a native collection? I can’t seem to find any mention of a native collection on the link you gave me.
In this case, you can create a view or a materialized view inside your database.
After that, you can create a native collection based on this view and it should work without any manual coding.