System Information
- Strapi Version: 4.14.0
- Operating System:
- Database: PostgreSql
- Node Version: 16.20.2
- NPM Version: 8.19.4
Hello guys,
Somehow “filters” and “populate” cannot be used together for me, the following example:
Fetch all data - It works!
res = await strapi.db.query('api::key.key').findMany({ populate: true });
Search for a keyword - It works!
res = await strapi.db.query('api::key.key').findMany({ filters: { uid: { $contains: keyword // 'ABC...' } } });
But when I bring the two together it doesn’t work anymore:
res = await strapi.db.query('api::key.key').findMany({ populate: true, filters: { uid: { $contains: keyword } } });
The error message says that the “uid” column doesn’t exist?!
Who can give me a tip, where is my mistake?
Thanks in advance!