Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
179 stars 95 forks source link

[BUG] Content API export not recognizing search params #133

Open Esipode opened 1 year ago

Esipode commented 1 year ago

Describe the bug When exporting through the Content API, it appears the sorting and filtering does not apply. The end result is that I get a full list of collection entries regardless of what I have entered into the search prop.

Screenshots Screenshot 2023-07-07 at 1 03 37 PM Screenshot 2023-07-07 at 1 03 26 PM

Screenshot 2023-07-07 at 3 22 24 PM

Additional context The code screenshot is from the node_modules folder of my project, I added the console logs in an effort to to track down where the issue is. It appears as soon as it reaches the qs.parse(), nothing is getting returned.

cedrtang commented 11 months ago

@Esipode I thought I had the same issue but it's actually working if you use the correct syntax. You need to write your query like this filters[id]=3 so that the filters var will be parsed by the lib.

It would be great to add the correct syntax in the README